@import url("https://fonts.googleapis.com/css2?family=GFS+Didot&family=Montserrat:wght@700&family=Open+Sans:wght@400;700&display=swap");

:root {
    --font-editorial: "GFS Didot", Didot, "Times New Roman", serif;
    --font-body: "Open Sans", Arial, Helvetica, sans-serif;
    --font-label: "Montserrat", Arial, Helvetica, sans-serif;

    --bg: #f5f5f2;
    --surface: #ffffff;
    --surface-soft: #fafaf8;
    --text: #171b19;
    --text-soft: #5f6964;
    --muted: #8a948f;
    --border: #dedfd9;

    --green: #0b7f5b;
    --green-dark: #075c43;
    --green-soft: #eaf7f1;

    --delete: #A62020;
    --delete-dark: #7e1818;
    --delete-soft: #fff0f0;

    --red-accent: #A62020;
    --shadow: 0 10px 28px rgba(26, 31, 28, .055);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-editorial);
    font-style: normal;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.25rem, 3.7vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

p {
    font-family: var(--font-body);
    font-size: .94rem;
    line-height: 1.65;
}

strong,
b,
button,
.button,
input[type="button"],
input[type="submit"] {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 700;
}

button,
.button,
input[type="button"],
input[type="submit"] {
    font-size: .82rem;
    line-height: 1.2;
    letter-spacing: .01em;
}

.eyebrow,
.section-label,
.field-label {
    font-family: var(--font-label);
    font-size: .69rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
}

small {
    font-family: var(--font-body);
    font-size: .72rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* LOGIN */
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(166, 32, 32, .065), transparent 30%),
        radial-gradient(circle at 80% 85%, rgba(11, 127, 91, .07), transparent 28%),
        #f6f6f3;
}

.login-card {
    width: min(440px, 100%);
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-logo {
    width: 205px;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.login-card .eyebrow {
    margin: 0 0 10px;
    color: var(--red-accent);
}

.login-card h1 {
    margin: 0 0 12px;
    font-size: 2.65rem;
}

.login-copy {
    margin: 0 0 24px;
    color: var(--text-soft);
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form input,
.delivery-form input,
.app-dialog input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 13px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
}

.login-form input:focus,
.delivery-form input:focus,
.app-dialog input:focus {
    border-color: #9abeb1;
    box-shadow: 0 0 0 3px rgba(11, 127, 91, .075);
    outline: none;
}

.login-foot {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: .72rem;
}

.alert {
    padding: 11px 13px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-size: .8rem;
}

.alert.error {
    background: var(--delete-soft);
    border: 1px solid #edc7c7;
    color: var(--delete);
}

/* LAYOUT */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 18px 18px;
    background: #fff;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 7px 31px;
    border-bottom: 1px solid #ededeb;
}

.sidebar-brand img {
    width: 172px;
    max-width: 100%;
    display: block;
}

.sidebar-brand > span {
    display: block;
    margin-top: 9px;
    color: var(--text-soft);
    font-size: .72rem;
}

.sidebar-nav {
    padding-top: 25px;
}

.sidebar-nav > .section-label {
    display: block;
    padding: 0 9px 10px;
    color: var(--muted);
}

.nav-item {
    width: 100%;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
    transition: background .16s ease, color .16s ease;
}

.nav-item:hover {
    background: #f6f6f3;
    color: var(--text);
}

.nav-item.active {
    background: #f8ecec;
    color: var(--red-accent);
}

.nav-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f4f5f2;
}

.nav-item.active .nav-icon {
    background: #f3dddd;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item strong {
    display: block;
    color: inherit;
    font-size: .83rem;
}

.nav-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .65rem;
}

.sidebar-fill {
    flex: 1;
    min-height: 30px;
}

.bucket-mini-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.bucket-mini-card .section-label {
    color: var(--muted);
}

.bucket-mini-card > strong {
    display: block;
    margin-top: 7px;
    font-size: .95rem;
}

.bucket-mini-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 11px;
    margin-top: 11px;
    border-top: 1px solid #e8e9e5;
    color: var(--text-soft);
    font-size: .67rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #2ab486;
}

.sign-out {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 10px 11px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: .74rem;
}

.sign-out:hover {
    color: var(--red-accent);
}

.sign-out svg {
    width: 16px;
    height: 16px;
}

.main-content {
    min-width: 0;
    width: 100%;
    padding: 34px clamp(26px, 3vw, 48px) 48px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.page-header .eyebrow {
    margin: 0 0 9px;
    color: var(--red-accent);
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 3.25vw, 3.25rem);
}

.page-header p:last-child {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: .9rem;
}

.connection-chip {
    flex: 0 0 auto;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #cfe5dc;
    border-radius: 999px;
    background: #f3fbf7;
    color: var(--green-dark);
    font-size: .72rem;
    font-weight: 700;
}

.connection-chip.checking {
    color: #876208;
    background: #fff9e9;
    border-color: #ebdda9;
}

.connection-chip.failed {
    color: var(--delete);
    background: var(--delete-soft);
    border-color: #ecc5c5;
}

.connection-chip.failed .status-dot {
    background: var(--delete);
}

/* FILE MANAGER */
.view {
    display: none;
}

.view.active {
    display: block;
}

.file-toolbar-card,
.content-card,
.delivery-header-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.file-toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    margin-bottom: 14px;
}

.location-block {
    min-width: 0;
}

.location-block .section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.crumb {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .81rem;
    font-weight: 700;
}

.crumb:hover {
    color: var(--red-accent);
}

.breadcrumbs > span {
    color: #a8aea9;
    font-size: .75rem;
}

.location-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: var(--muted);
    font-size: .68rem;
}

.meta-separator {
    color: #c1c4c0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.search-box {
    width: 230px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafaf8;
}

.search-box svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    flex: 0 0 auto;
}

.search-box input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .75rem;
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.button svg {
    width: 16px;
    height: 16px;
}

.button-primary {
    background: var(--green);
    color: #fff;
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-light {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.button-light:hover {
    background: #f8f8f5;
    border-color: #cccec8;
}

.button-delete {
    background: var(--delete);
    color: #fff;
}

.button-delete:hover {
    background: var(--delete-dark);
}

.button-full {
    width: 100%;
}

.button-large {
    min-height: 47px;
    font-size: .86rem;
}

.file-button {
    position: relative;
    overflow: hidden;
}

.file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-card {
    min-height: 370px;
    overflow: hidden;
}

.card-heading {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.card-heading.compact {
    min-height: 68px;
}

.card-heading h2,
.card-heading h3 {
    margin: 0;
    font-size: 1.65rem;
}

.card-heading h3 {
    font-size: 1.4rem;
}

.card-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.bucket-badge {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 9px 12px;
    border-left: 2px solid var(--red-accent);
    background: #faf8f6;
}

.bucket-badge .section-label {
    display: block;
    color: var(--muted);
}

.bucket-badge strong {
    display: block;
    margin-top: 5px;
    font-size: .8rem;
}

.loading {
    padding: 36px 18px;
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
}

.spinner {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid #d4dfdb;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.connection-error {
    margin: 14px 18px 0;
    padding: 12px 14px;
    border: 1px solid #edc5c5;
    border-radius: 8px;
    background: var(--delete-soft);
    color: var(--delete);
    font-size: .76rem;
    line-height: 1.5;
    word-break: break-word;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.file-table th {
    height: 42px;
    padding: 0 16px;
    background: #fafaf8;
    border-bottom: 1px solid var(--border);
    color: #717a75;
    text-align: left;
    font-family: var(--font-label);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.file-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eceeea;
    color: var(--text-soft);
    font-size: .73rem;
    vertical-align: middle;
}

.file-table tbody tr:last-child td {
    border-bottom: 0;
}

.file-table tbody tr:hover {
    background: #fcfcfa;
}

.file-table th:nth-child(1),
.file-table td:nth-child(1) {
    width: 40%;
}

.file-table th:nth-child(2),
.file-table td:nth-child(2) {
    width: 11%;
}

.file-table th:nth-child(3),
.file-table td:nth-child(3) {
    width: 10%;
}

.file-table th:nth-child(4),
.file-table td:nth-child(4) {
    width: 18%;
}

.file-table th:nth-child(5),
.file-table td:nth-child(5) {
    width: 21%;
}

.item-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.item-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.item-icon.folder {
    background: var(--green-soft);
    color: var(--green);
}

.item-icon.file {
    background: #f0f3fa;
    color: #506b9a;
}

.item-icon svg {
    width: 17px;
    height: 17px;
}

.item-text {
    min-width: 0;
}

.item-text strong {
    display: block;
    color: var(--text);
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-text small {
    display: block;
    margin-top: 3px;
    color: #929a96;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2f3f0;
    color: #69726d;
    font-size: .62rem;
    font-weight: 700;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
}

.action-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: .68rem;
    font-weight: 700;
}

.action-button svg {
    width: 14px;
    height: 14px;
}

.action-open {
    border: 1px solid #bee0d3;
    background: #eff9f5;
    color: var(--green-dark);
}

.action-open:hover {
    background: #e4f4ed;
}

.action-download {
    border: 1px solid #d3d7de;
    background: #f7f8fa;
    color: #344354;
}

.action-download:hover {
    background: #eef1f5;
}

.action-delete {
    border: 1px solid #e4b5b5;
    background: var(--delete-soft);
    color: var(--delete);
}

.action-delete:hover {
    border-color: #d89a9a;
    background: #fce4e4;
    color: var(--delete-dark);
}

.empty-state {
    min-height: 280px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
}

.empty-state h3 {
    margin: 0;
    font-size: 1.35rem;
}

.empty-state p {
    max-width: 420px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .75rem;
}

/* DELIVERY */
.delivery-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    margin-bottom: 14px;
}

.delivery-header-card > div:first-child {
    max-width: 760px;
}

.delivery-header-card .section-label {
    margin: 0 0 7px;
    color: var(--red-accent);
}

.delivery-header-card h2 {
    margin: 0;
    font-size: 2rem;
}

.delivery-header-card p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: .79rem;
}

.delivery-note {
    width: 310px;
    flex: 0 0 auto;
    padding: 12px 14px;
    border-left: 3px solid var(--green);
    background: #f5faf7;
}

.delivery-note strong {
    display: block;
    font-size: .75rem;
}

.delivery-note span {
    display: block;
    margin-top: 3px;
    color: var(--text-soft);
    font-size: .68rem;
    line-height: 1.45;
}

.delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
    gap: 14px;
    align-items: start;
}

.form-card {
    overflow: hidden;
}

.delivery-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 18px;
}

.delivery-form label {
    min-width: 0;
}

.delivery-form .field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
}

.delivery-form small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.full-row {
    grid-column: 1 / -1;
}

.upload-drop {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px dashed #bac8c2;
    border-radius: 10px;
    background: #fbfcfa;
    position: relative;
    cursor: pointer;
}

.upload-drop:hover {
    border-color: #87b9a7;
    background: #f7faf8;
}

.upload-drop-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--green-soft);
    color: var(--green);
}

.upload-drop strong {
    display: block;
    font-size: .76rem;
}

.upload-drop small {
    margin-top: 2px;
}

.upload-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.delivery-aside {
    display: grid;
    gap: 14px;
}

.preview-card,
.rules-card {
    overflow: hidden;
}

.path-tree {
    min-height: 145px;
    padding: 17px 18px 12px;
}

.tree-row {
    min-height: 29px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: .72rem;
}

.tree-row.root {
    color: var(--text);
}

.tree-row.muted {
    color: var(--muted);
}

.tree-level-1 {
    padding-left: 14px;
}

.tree-level-2 {
    padding-left: 30px;
}

.tree-level-3 {
    padding-left: 46px;
}

.tree-branch {
    color: #a8afab;
    font-family: monospace;
}

.destination-code {
    margin: 0 17px 17px;
    padding: 12px;
    border-radius: 9px;
    background: #202523;
    color: #e8ecea;
}

.destination-code .section-label {
    display: block;
    margin-bottom: 7px;
    color: #adb6b1;
}

.destination-code code {
    display: block;
    overflow-wrap: anywhere;
    font-family: Consolas, "Courier New", monospace;
    font-size: .67rem;
    line-height: 1.5;
}

.rules-card {
    padding: 17px;
}

.rules-card .section-label {
    color: var(--red-accent);
}

.rules-card ul {
    list-style: none;
    margin: 13px 0 0;
    padding: 0;
}

.rules-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eceeea;
    color: var(--text-soft);
    font-size: .72rem;
}

.rules-card li:last-child {
    border-bottom: 0;
}

.rules-card li span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 700;
}

/* DIALOGS */
.app-dialog {
    width: min(430px, calc(100vw - 30px));
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 25px 70px rgba(28, 33, 30, .2);
}

.app-dialog::backdrop {
    background: rgba(24, 27, 25, .42);
    backdrop-filter: blur(2px);
}

.app-dialog form {
    padding: 24px;
}

.app-dialog .section-label {
    margin: 0 0 8px;
    color: var(--red-accent);
}

.app-dialog h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.app-dialog p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: .76rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.delete-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--delete-soft);
    color: var(--delete);
}

.delete-icon svg {
    width: 21px;
    height: 21px;
}

.delete-label {
    color: var(--delete) !important;
}

.delete-type-wrap {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #eceeea;
}

/* TOAST */
.toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    max-width: min(390px, calc(100vw - 48px));
    padding: 12px 14px;
    border-radius: 9px;
    background: #202523;
    color: #fff;
    box-shadow: 0 16px 38px rgba(26, 31, 28, .2);
    font-size: .75rem;
    line-height: 1.45;
}

.toast.error {
    background: var(--delete);
}

.toast.info {
    background: #42524b;
}

/* RESPONSIVE */
@media (max-width: 1120px) {
    .app-shell {
        grid-template-columns: 225px minmax(0, 1fr);
    }

    .main-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .file-toolbar-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .search-box {
        flex: 1 1 260px;
        width: auto;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .delivery-aside {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 12px 15px;
        display: grid;
        grid-template-columns: 160px 1fr auto;
        align-items: center;
        gap: 14px;
        overflow: visible;
    }

    .sidebar-brand {
        padding: 0;
        border: 0;
    }

    .sidebar-brand img {
        width: 145px;
    }

    .sidebar-brand > span,
    .sidebar-nav > .section-label,
    .bucket-mini-card {
        display: none;
    }

    .sidebar-nav {
        padding: 0;
    }

    .sidebar-nav {
        display: flex;
        justify-content: center;
        gap: 7px;
    }

    .nav-item {
        width: auto;
        grid-template-columns: 34px auto;
        margin: 0;
        padding: 7px 9px;
    }

    .nav-icon {
        width: 32px;
        height: 32px;
    }

    .nav-item small {
        display: none;
    }

    .sidebar-fill {
        display: none;
    }

    .sign-out {
        margin: 0;
        padding: 9px;
    }

    .main-content {
        padding: 24px 16px 38px;
    }

    .page-header {
        align-items: center;
    }

    .delivery-header-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-note {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .sidebar {
        grid-template-columns: 120px 1fr 36px;
    }

    .sidebar-brand img {
        width: 112px;
    }

    .nav-item {
        grid-template-columns: 32px;
    }

    .nav-item > span:last-child {
        display: none;
    }

    .sign-out {
        font-size: 0;
    }

    .page-header {
        display: block;
    }

    .connection-chip {
        margin-top: 14px;
        max-width: 100%;
    }

    .toolbar-right .button {
        flex: 1 1 auto;
    }

    .file-table {
        min-width: 850px;
    }

    .delivery-form {
        grid-template-columns: 1fr;
    }

    .full-row {
        grid-column: auto;
    }

    .delivery-aside {
        grid-template-columns: 1fr;
    }
}
