:root {
    --bg: #f4efe5;
    --bg-soft: #fffaf2;
    --surface: rgba(255, 250, 242, 0.86);
    --surface-strong: #fffdf9;
    --text: #1c2a2a;
    --muted: #64706d;
    --line: rgba(28, 42, 42, 0.1);
    --accent: #0f766e;
    --accent-soft: #d8f0ea;
    --accent-strong: #0a4b46;
    --warm: #c2612d;
    --danger: #af3b36;
    --info: #3b6e8f;
    --shadow: 0 24px 60px rgba(23, 33, 33, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(194, 97, 45, 0.12), transparent 22%),
        linear-gradient(180deg, #efe7d8 0%, #f6f2ea 42%, #f1ecdf 100%);
    min-height: 100vh;
    min-height: 100dvh;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.sidebar {
    background:
        radial-gradient(circle at top right, rgba(194, 97, 45, 0.16), transparent 24%),
        radial-gradient(circle at top left, rgba(255, 244, 228, 0.1), transparent 20%),
        linear-gradient(180deg, rgba(29, 65, 61, 0.98), rgba(19, 48, 45, 0.99));
    color: #effaf8;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-block {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.12), rgba(255, 250, 242, 0.05));
    border: 1px solid rgba(255, 250, 242, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.08);
}

.brand-logo {
    width: 54px;
    height: 54px;
}

.brand-logo-custom {
    width: 36px;
    height: 36px;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 12px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px rgba(8, 18, 17, 0.16);
    flex-shrink: 0;
}

.brand-block strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.public-brand-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(28, 42, 42, 0.08);
    box-shadow: var(--shadow);
    width: fit-content;
    max-width: 100%;
}

.public-brand-chip strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.06rem;
    overflow-wrap: anywhere;
}

.public-brand-chip span {
    color: var(--muted);
    font-size: 0.92rem;
}

.brand-block p,
.sidebar-footer span {
    color: rgba(239, 250, 248, 0.72);
    margin: 2px 0 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.brand-block p {
    font-size: 0.82rem;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.05);
    border: 1px solid rgba(255, 250, 242, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.06);
}

.sidebar-nav::before {
    content: "OPERASYON MENUSU";
    display: block;
    padding: 1px 6px 8px;
    color: rgba(255, 245, 232, 0.54);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 16px;
    color: rgba(250, 244, 235, 0.84);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    word-break: break-word;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.06), rgba(255, 250, 242, 0.02));
    border: 1px solid rgba(255, 250, 242, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.04);
    font-size: 0.96rem;
}

.sidebar-nav a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 188, 134, 0.78);
    box-shadow: 0 0 0 4px rgba(194, 97, 45, 0.12);
}

.sidebar-nav a::after {
    content: "";
    justify-self: end;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.35;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    color: #fff;
    transform: translateX(3px);
}

.sidebar-nav a:hover {
    background: linear-gradient(180deg, rgba(255, 248, 238, 0.16), rgba(255, 248, 238, 0.06));
    border-color: rgba(255, 248, 238, 0.11);
    box-shadow: 0 12px 22px rgba(8, 18, 17, 0.18);
}

.sidebar-nav a.is-active {
    background: linear-gradient(135deg, rgba(194, 97, 45, 0.94), rgba(15, 118, 110, 0.96));
    border-color: rgba(255, 241, 225, 0.18);
    color: #fff;
    box-shadow: 0 14px 24px rgba(6, 17, 16, 0.22);
}

.sidebar-nav a:hover::after,
.sidebar-nav a.is-active::after {
    opacity: 1;
    transform: translateX(2px) rotate(45deg);
}

.sidebar-nav a.is-active::before {
    background: #fff7ee;
    box-shadow: 0 0 0 4px rgba(255, 247, 238, 0.14);
}

.sidebar-footer {
    display: grid;
    gap: 10px;
    font-size: 0.84rem;
    flex-shrink: 0;
    padding: 14px;
    border-top: 1px solid rgba(255, 248, 238, 0.08);
    border-radius: 22px;
    background: rgba(255, 248, 238, 0.05);
    border: 1px solid rgba(255, 248, 238, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 248, 238, 0.04);
}

.sidebar-footer span {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 248, 238, 0.06);
    border: 1px solid rgba(255, 248, 238, 0.06);
    font-size: 0.82rem;
    line-height: 1.4;
}

.sidebar-exit-form {
    display: block;
    margin: 0;
}

.sidebar-exit-button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(194, 97, 45, 0.94), rgba(15, 118, 110, 0.96));
    color: #fff !important;
    border: 1px solid rgba(255, 247, 238, 0.12);
    box-shadow: 0 12px 22px rgba(6, 17, 16, 0.18);
}

.sidebar-exit-button:hover,
.sidebar-exit-button:focus,
.sidebar-exit-button:active,
.mobile-exit-button:hover,
.mobile-exit-button:focus,
.mobile-exit-button:active {
    color: #fff !important;
}

.mobile-exit-form {
    margin: 0;
    display: inline-flex;
}

.mobile-exit-button {
    min-width: 84px;
    justify-content: center;
    color: #fff !important;
}

.mobile-shell-spacer {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-backdrop,
.mobile-shell-bar,
.mobile-dock,
.technician-dock {
    display: none;
}

.demo-banner,
.demo-upgrade-card {
    background: linear-gradient(145deg, rgba(255, 249, 240, 0.98), rgba(251, 245, 235, 0.94));
    border: 1px solid rgba(194, 97, 45, 0.16);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.demo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 360px);
    gap: 20px;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.demo-banner::after {
    content: "";
    position: absolute;
    inset: auto -40px -64px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 72%);
    pointer-events: none;
}

.demo-banner-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.demo-banner-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-banner-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 700;
}

.demo-banner h3,
.demo-upgrade-card strong {
    margin: 6px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.demo-banner p,
.demo-upgrade-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.demo-banner-actions {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 12px;
    justify-self: end;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 42, 42, 0.08);
    position: relative;
    z-index: 1;
}

.demo-banner-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-banner-cta-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.demo-banner-cta-row .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    text-align: center;
}

.demo-banner-contact {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.demo-contact-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.08);
    color: var(--accent-strong);
    font-weight: 700;
}

.demo-upgrade-card {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.permission-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.permission-hub.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.permission-card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.permission-card strong {
    font-size: 1rem;
}

.permission-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

[data-permission-status][data-state="success"] {
    color: var(--accent-strong);
}

[data-permission-status][data-state="warning"] {
    color: var(--warm);
}

[data-permission-status][data-state="danger"] {
    color: var(--danger);
}

.demo-lock-note {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(194, 97, 45, 0.35);
    background: rgba(194, 97, 45, 0.08);
    display: grid;
    gap: 10px;
}

.demo-lock-note strong {
    font-size: 1rem;
}

.demo-lock-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.is-demo-locked {
    opacity: 0.92;
}

.main-content {
    padding: clamp(16px, 2.6vw, 28px);
    display: grid;
    gap: 24px;
    min-width: 0;
}

.hero,
.panel-card,
.top-strip-card,
.metric-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.hero {
    border-radius: 34px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.15), transparent 70%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1,
.section-heading h2,
.print-header h2 {
    margin: 8px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.06;
}

.hero p,
.section-heading p,
.bullet-card p,
.mini-panel p,
.list-item p,
.cell-sub {
    color: var(--muted);
}

.hero-actions,
.inline-actions,
.action-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    background: #e7ece8;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.66;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
}

.button-ghost {
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent-strong);
}

.button-small {
    padding: 8px 14px;
    font-size: 0.93rem;
}

.top-strip,
.metrics-grid,
.content-grid {
    display: grid;
    gap: 18px;
}

.top-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.top-strip-card,
.metric-card {
    border-radius: 22px;
    padding: 18px 20px;
}

.top-strip-card span,
.metric-label,
.eyebrow {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.top-strip-card strong,
.metric-value {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-hint {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.two-column {
    grid-template-columns: 1.15fr 0.85fr;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-card {
    border-radius: var(--radius);
    padding: 24px;
}

.nested-panel {
    margin-top: 18px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.56);
}

.panel-card-header,
.list-item,
.section-heading,
.print-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.panel-card-header h3,
.mini-panel h4 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.panel-card-header span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-heading {
    flex-direction: column;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2vw, 2.2rem);
}

.form-grid,
.compact-form,
.mini-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
    display: grid;
    gap: 8px;
}

label span {
    font-weight: 700;
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cell-sub {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
}

.stack-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.compact {
    gap: 8px;
}

.list-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
}

.list-item-metrics {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
    font-size: 0.92rem;
}

.badge,
.pill,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge-success,
.pill-success {
    background: rgba(15, 118, 110, 0.14);
    color: var(--accent-strong);
}

.badge-warning {
    background: rgba(194, 97, 45, 0.16);
    color: #8d4219;
}

.badge-danger {
    background: rgba(175, 59, 54, 0.14);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 110, 143, 0.14);
    color: var(--info);
}

.badge-muted,
.pill,
.chip {
    background: rgba(28, 42, 42, 0.08);
    color: var(--text);
}

.bullet-cards {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.bullet-card,
.mini-panel,
.mobile-order-card,
.empty-state,
.signature-preview {
    border-radius: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.66);
}

.mobile-order-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.mobile-order-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mobile-order-card.selected,
.mobile-order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.25);
}

.inline-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.action-pill-grid {
    margin-bottom: 18px;
}

.pill-form {
    margin: 0;
}

.form-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tight-grid {
    margin-top: 18px;
}

.signature-pad {
    width: 100%;
    border: 1px dashed rgba(15, 118, 110, 0.35);
    border-radius: 18px;
    background: #fff;
    touch-action: none;
}

.signature-preview img,
.signature-image {
    max-height: 120px;
    margin-top: 10px;
    object-fit: contain;
}

.signature-placeholder {
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 22px;
    color: var(--muted);
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.photo-card img {
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.spotlight-card {
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(194, 97, 45, 0.1)),
        rgba(255, 250, 242, 0.92);
}

.timeline-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
    line-height: 1.6;
}

.flash {
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 700;
}

.flash-success {
    background: rgba(15, 118, 110, 0.14);
    color: var(--accent-strong);
}

.flash-error {
    background: rgba(175, 59, 54, 0.14);
    color: var(--danger);
}

.empty-state {
    color: var(--muted);
}

.print-sheet {
    background: var(--surface-strong);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.print-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.public-body,
.tech-body {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(194, 97, 45, 0.12), transparent 22%),
        linear-gradient(180deg, #efe7d8 0%, #f8f4ed 42%, #f1ecdf 100%);
}

.public-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(16px, 2.6vw, 28px);
    display: grid;
    gap: 20px;
    align-content: start;
}

.public-main-login {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1080px;
    align-content: center;
}

.panel-login-shell {
    display: grid;
}

.panel-login-card {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.22), transparent 24%),
        radial-gradient(circle at bottom left, rgba(194, 97, 45, 0.16), transparent 28%),
        linear-gradient(160deg, #122826 0%, #0f1d1d 55%, #182929 100%);
    border: 1px solid rgba(222, 240, 236, 0.08);
    box-shadow: 0 36px 80px rgba(7, 14, 14, 0.28);
    position: relative;
    overflow: hidden;
}

.panel-login-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(194, 97, 45, 0.16), transparent 72%);
    pointer-events: none;
}

.panel-login-card::after {
    content: "";
    position: absolute;
    inset: auto -70px -90px auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 72%);
    pointer-events: none;
}

.panel-login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.96fr);
    align-items: stretch;
}

.panel-login-side {
    display: grid;
    gap: 18px;
    align-content: center;
    position: relative;
    z-index: 1;
}

.panel-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(246, 252, 250, 0.07);
    border: 1px solid rgba(237, 247, 245, 0.08);
    backdrop-filter: blur(12px);
}

.panel-login-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(14, 31, 30, 0.14);
}

.panel-login-brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.1;
    color: #f7f4ee;
}

.panel-login-brand span {
    display: block;
    margin-top: 4px;
}

.panel-login-brand span,
.panel-login-copy p,
.panel-login-foot span,
.panel-login-foot a {
    color: rgba(228, 236, 233, 0.78);
}

.panel-login-copy {
    display: grid;
    gap: 12px;
    text-align: left;
}

.panel-login-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 0.98;
    color: #fffaf3;
    max-width: 10ch;
}

.panel-login-copy p {
    margin: 0;
    line-height: 1.6;
    max-width: 42ch;
}

.panel-login-side .eyebrow {
    color: rgba(198, 220, 216, 0.72);
}

.panel-login-form {
    gap: 16px;
}

.panel-login-market-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.panel-login-ticker {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 251, 249, 0.08), rgba(247, 251, 249, 0.04));
    border: 1px solid rgba(237, 247, 245, 0.08);
    backdrop-filter: blur(10px);
}

.panel-login-ticker span {
    color: rgba(189, 211, 205, 0.68);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-login-ticker strong {
    color: #f8f3eb;
    font-size: 0.98rem;
    line-height: 1.35;
}

.panel-login-ticker small {
    color: rgba(211, 224, 220, 0.74);
    line-height: 1.45;
    font-size: 0.84rem;
}

.panel-login-form-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 242, 233, 0.96));
    border: 1px solid rgba(28, 42, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 40px rgba(8, 18, 17, 0.18);
    position: relative;
    z-index: 1;
}

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

.panel-login-form-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.08;
}

.panel-login-form-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.panel-login-field {
    gap: 9px;
}

.panel-login-field span {
    color: var(--text);
    font-size: 0.9rem;
}

.panel-login-field input {
    min-height: 58px;
    border-radius: 20px;
    border: 1px solid rgba(28, 42, 42, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 14px 16px;
}

.panel-login-field input:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.panel-login-note {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(194, 97, 45, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.panel-login-note strong {
    font-size: 0.96rem;
}

.panel-login-note span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.panel-login-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.panel-login-actions .button {
    width: 100%;
    min-height: 56px;
}

.panel-login-actions .button-primary {
    background: linear-gradient(135deg, #0f766e, #0b4f4a);
    box-shadow: 0 18px 30px rgba(10, 75, 70, 0.24);
}

.panel-login-actions .button-ghost {
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.panel-login-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-top: 4px;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.panel-login-foot a {
    font-weight: 700;
}

.public-main-login {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1260px;
    align-content: start;
    padding-top: 32px;
}

.panel-login-shell {
    display: grid;
    gap: 24px;
}

.panel-login-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.panel-login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(28, 42, 42, 0.08);
    box-shadow: 0 16px 36px rgba(20, 31, 31, 0.08);
}

.panel-login-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(16, 26, 26, 0.12);
}

.panel-login-brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.28rem, 2vw, 1.56rem);
    line-height: 1.08;
    color: var(--text);
}

.panel-login-brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.panel-login-topnav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-login-navlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(28, 42, 42, 0.08);
    color: var(--text);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.panel-login-navlink:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
}

.panel-login-navlink.is-active {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 118, 110, 0.14);
    box-shadow: 0 12px 24px rgba(18, 36, 35, 0.08);
}

.panel-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 22px;
}

.panel-login-info-card,
.panel-login-form-card {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 42, 42, 0.08);
    box-shadow: var(--shadow);
}

.panel-login-info-card {
    align-content: start;
}

.panel-login-info-card h1 {
    margin: 2px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.05rem, 4vw, 3rem);
    line-height: 1;
    color: var(--text);
    max-width: 12ch;
}

.panel-login-info-card p,
.panel-login-form-head p,
.panel-login-point span,
.panel-login-alert span,
.panel-login-footnote span,
.panel-login-footnote a,
.panel-login-demo-box small {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.panel-login-alert {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.panel-login-alert strong {
    font-size: 0.95rem;
}

.panel-login-alert-error {
    background: rgba(175, 59, 54, 0.1);
    border-color: rgba(175, 59, 54, 0.14);
    color: var(--danger);
}

.panel-login-alert-success {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.14);
    color: var(--accent-strong);
}

.panel-login-points {
    display: grid;
    gap: 12px;
}

.panel-login-point {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 243, 235, 0.68);
    border: 1px solid rgba(194, 97, 45, 0.08);
}

.panel-login-point strong {
    font-size: 0.98rem;
}

.panel-login-footnote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 2px;
    flex-wrap: wrap;
}

.panel-login-footnote a {
    font-weight: 700;
}

.panel-login-form-head {
    display: grid;
    gap: 8px;
}

.panel-login-form-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2vw, 1.95rem);
    line-height: 1.08;
}

.panel-login-demo-box {
    display: grid;
    gap: 6px;
    padding: 18px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 246, 236, 0.96), rgba(255, 241, 226, 0.92));
    border: 1px solid rgba(220, 161, 143, 0.46);
}

.panel-login-demo-box strong {
    font-size: 0.98rem;
}

.panel-login-demo-box span {
    font-size: 1.02rem;
    font-weight: 700;
}

.panel-login-form {
    gap: 16px;
}

.panel-login-field {
    gap: 9px;
}

.panel-login-field span {
    font-size: 0.92rem;
    color: var(--text);
}

.panel-login-field input {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(28, 42, 42, 0.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.panel-login-field input:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.panel-login-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.panel-login-actions .button {
    width: 100%;
    min-height: 54px;
}

.panel-login-actions .button-primary {
    background: linear-gradient(135deg, #dca58f, #cd9279);
    color: #fff;
    box-shadow: 0 14px 24px rgba(205, 146, 121, 0.24);
}

.landing-shell,
.technician-shell {
    display: grid;
    gap: 24px;
}

.landing-hero,
.auth-shell,
.technician-topbar,
.callout-card,
.feature-card,
.landing-highlight {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding: 30px;
    border-radius: 34px;
}

.landing-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    margin: 10px 0 14px;
    overflow-wrap: anywhere;
}

.landing-copy p,
.callout-card p,
.feature-card p,
.landing-list li {
    color: var(--muted);
    line-height: 1.7;
}

.landing-highlight {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 28px;
}

.landing-metric {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.landing-metric span {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-metric strong {
    display: block;
    margin-top: 6px;
}

.landing-section {
    display: grid;
    gap: 18px;
}

.feature-grid,
.dual-callout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.callout-card {
    padding: 22px;
    border-radius: 26px;
}

.callout-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    margin: 10px 0 10px;
}

.landing-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
    border-radius: 34px;
    padding: 24px;
    align-items: start;
}

.auth-card,
.auth-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.auth-card .form-grid {
    align-items: start;
}

.auth-form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.auth-form-actions .button {
    min-height: 54px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 220px;
}

.setup-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.setup-item {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.setup-item strong {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.setup-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.work-order-tech-cta {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 249, 241, 0.84), rgba(255, 255, 255, 0.54));
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.work-order-tech-cta strong {
    display: block;
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.work-order-tech-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.work-order-tech-button,
.work-order-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.work-order-tech-button::after,
.work-order-row-button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.work-order-row-button {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(194, 97, 45, 0.12));
    color: var(--accent-strong);
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.table-action-cell {
    min-width: 190px;
}

.table-action-cell .cell-sub {
    display: block;
    margin-top: 8px;
}

.technician-jump-note {
    margin-bottom: 18px;
}

.main-content-tech {
    max-width: 1180px;
    margin: 0 auto;
}

.technician-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 28px;
}

.technician-topbar h1 {
    font-family: Georgia, "Times New Roman", serif;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.technician-dock {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 55, 53, 0.94), rgba(13, 40, 39, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.mobile-dock {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 55, 53, 0.94), rgba(13, 40, 39, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.technician-dock a,
.mobile-dock a {
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    border-radius: 16px;
    padding: 10px 12px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.technician-dock a:hover,
.mobile-dock a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.technician-dock a.is-active,
.mobile-dock a.is-active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(10, 75, 70, 0.98));
    border-color: rgba(225, 248, 244, 0.18);
    color: #fff;
    box-shadow: 0 12px 26px rgba(6, 17, 16, 0.24);
}

@media (max-width: 1180px) {
    .metrics-grid,
    .top-strip,
    .three-column,
    .feature-grid,
    .dual-callout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, calc(100vw - 52px));
        height: 100vh;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        z-index: 30;
    }

    .app-shell.menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 18, 17, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 25;
    }

    .app-shell.menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-shell-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 22px;
        background: linear-gradient(145deg, rgba(255, 252, 247, 0.97), rgba(249, 243, 233, 0.92));
        border: 1px solid rgba(28, 42, 42, 0.08);
        backdrop-filter: blur(16px);
        box-shadow: var(--shadow);
    }

    .mobile-shell-bar strong {
        font-family: Georgia, "Times New Roman", serif;
        text-align: center;
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mobile-shell-bar > * {
        min-width: 0;
    }

    .mobile-shell-bar .button {
        min-height: 44px;
        border-radius: 16px;
    }

    .mobile-shell-spacer {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    #sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: rgba(15, 118, 110, 0.1);
        color: var(--accent-strong);
        border: 1px solid rgba(15, 118, 110, 0.12);
    }

    #sidebar-toggle::before {
        content: "";
        width: 14px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    }

    .mobile-dock,
    .technician-dock {
        display: grid;
    }

    .main-content,
    .main-content-tech {
        padding-bottom: 96px;
    }
}

@media (max-width: 760px) {
    .public-main-login {
        align-content: start;
        padding-top: 20px;
    }

    .panel-login-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-login-topnav {
        justify-content: flex-start;
    }

    .panel-login-grid {
        grid-template-columns: 1fr;
    }

    .panel-login-info-card,
    .panel-login-form-card {
        padding: 20px;
        border-radius: 24px;
    }

    .panel-login-info-card h1 {
        max-width: none;
    }

    .panel-login-card {
        gap: 18px;
        padding: 18px 16px;
        border-radius: 26px;
    }

    .panel-login-layout {
        grid-template-columns: 1fr;
    }

    .panel-login-brand {
        align-items: flex-start;
    }

    .panel-login-market-strip {
        grid-template-columns: 1fr;
    }

    .panel-login-form-card {
        padding: 18px;
        border-radius: 22px;
    }

    .panel-login-copy {
        text-align: left;
    }

    .panel-login-brand {
        text-align: left;
    }

    .panel-login-copy p {
        max-width: none;
    }

    .panel-login-foot,
    .panel-login-footnote {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar {
        padding: 16px 14px;
        gap: 14px;
    }

    .brand-block {
        padding: 10px 11px;
    }

    .sidebar-nav {
        padding: 8px;
        gap: 6px;
    }

    .sidebar-nav a {
        padding: 11px 12px;
        font-size: 0.92rem;
    }

    .sidebar-footer {
        padding: 12px;
    }

    .sidebar-footer span {
        font-size: 0.78rem;
    }

    .main-content {
        padding: 18px;
    }

    .public-main,
    .main-content-tech {
        padding: 18px;
    }

    .hero,
    .panel-card,
    .print-sheet,
    .landing-hero,
    .auth-shell,
    .technician-topbar,
    .feature-card,
    .callout-card {
        padding: 20px;
        border-radius: 24px;
    }

    .hero,
    .panel-card-header,
    .list-item,
    .mobile-order-card,
    .landing-hero,
    .auth-shell,
    .technician-topbar {
        flex-direction: column;
    }

    .hero-actions,
    .technician-topbar .hero-actions {
        width: 100%;
    }

    .hero-actions .button,
    .hero-actions form {
        width: 100%;
    }

    .metrics-grid,
    .top-strip,
    .three-column,
    .form-grid,
    .form-inline,
    .feature-grid,
    .dual-callout,
    .auth-shell,
    .setup-checklist,
    .permission-hub,
    .permission-hub.compact {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .auth-form-actions {
        width: 100%;
    }

    .work-order-tech-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-banner {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .demo-banner-actions,
    .demo-banner-cta-row {
        width: 100%;
    }

    .public-brand-chip {
        width: 100%;
    }

    .auth-form-actions .button {
        width: 100%;
        flex-basis: 100%;
    }

    .mobile-dock,
    .technician-dock {
        grid-auto-flow: column;
        grid-auto-columns: minmax(92px, 1fr);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    table {
        min-width: 540px;
    }
}

@media (max-width: 980px) {
    .panel-login-grid {
        grid-template-columns: 1fr;
    }

    .demo-banner {
        grid-template-columns: 1fr;
    }

    .demo-banner-actions {
        justify-self: stretch;
    }
}

@media print {
    body {
        background: #fff;
    }

    .sidebar,
    .hero,
    .top-strip,
    .flash,
    .button,
    .page-section:not(.print-sheet),
    .content-grid:not(.print-sheet) {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .print-sheet {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}
