:root {
    --bg: #eef6f2;
    --panel: #ffffff;
    --panel-soft: #e4f6ef;
    --border: #c5e6dc;
    --text: #153335;
    --muted: #4d6f6e;
    --primary: #0b6d60;
    --primary-dark: #062f31;
    --accent: #18c39c;
    --accent-dark: #0f8f74;
    --accent-lime: #67db67;
    --madi-orange: #f47a20;
    --madi-orange-soft: #ffb45f;
    --madi-black: #071011;
    --danger: #c74444;
    --shadow: 0 24px 60px rgba(6, 47, 49, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(103, 219, 103, 0.12), transparent 18%),
        radial-gradient(circle at bottom left, rgba(24, 195, 156, 0.12), transparent 24%),
        linear-gradient(180deg, #f7fdf9 0%, var(--bg) 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

a {
    text-decoration: none;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-wrapper {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-panel,
.login-aside {
    padding: 40px;
}

.login-panel {
    background:
        radial-gradient(circle at top left, rgba(103, 219, 103, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(24, 195, 156, 0.11), rgba(11, 109, 96, 0.04)),
        #fff;
}

.login-aside {
    background:
        radial-gradient(circle at 18% 18%, rgba(103, 219, 103, 0.20), transparent 22%),
        radial-gradient(circle at 80% 20%, rgba(24, 195, 156, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(4, 27, 29, 0.99), rgba(11, 79, 76, 0.98)),
        #051f22;
    color: #fff;
    display: flex;
    align-items: stretch;
}

.login-brand,
.sidebar-brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.brand-mark {
    width: 92px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 28, 29, 0.98), rgba(11, 79, 76, 0.98));
    box-shadow: 0 18px 34px rgba(8, 60, 59, 0.28);
    padding: 6px 10px;
}

.brand-mark-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-scene {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.login-scene::before,
.login-scene::after {
    content: "";
    position: absolute;
    border-radius: 30px;
    filter: blur(0.5px);
    pointer-events: none;
}

.login-scene::before {
    width: 120px;
    height: 120px;
    top: 0;
    left: 8px;
    background: radial-gradient(circle, rgba(103, 219, 103, 0.48), rgba(103, 219, 103, 0));
}

.login-scene::after {
    width: 180px;
    height: 40px;
    right: 26px;
    bottom: 78px;
    background: rgba(0, 0, 0, 0.18);
    filter: blur(12px);
}

.login-scene-copy {
    position: relative;
    z-index: 1;
}

.login-scene-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.05;
    margin: 16px 0 12px;
}

.login-scene-copy p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.86);
}

.login-mascot {
    width: min(320px, 80%);
    align-self: end;
    margin-right: 12px;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
    position: relative;
    z-index: 1;
}

.login-brand h1,
.sidebar-brand h1 {
    font-size: 1.6rem;
    line-height: 1.16;
    margin: 0;
}

.login-brand p,
.sidebar-brand p,
.eyebrow {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
}

.login-copy {
    margin: 42px 0 32px;
}

.login-copy h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.login-copy p,
.company-card p {
    color: var(--muted);
    line-height: 1.7;
}

.company-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 28px;
}

.company-card-floating {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.company-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.company-card a {
    color: #9ef0db;
    font-weight: 700;
}

.login-wrapper-pro {
    backdrop-filter: blur(14px);
}

.login-aside-showcase {
    background:
        radial-gradient(circle at 18% 18%, rgba(103, 219, 103, 0.18), transparent 22%),
        radial-gradient(circle at 82% 22%, rgba(24, 195, 156, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(4, 27, 29, 0.98), rgba(8, 73, 61, 0.98));
}

.login-hero-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 16% 20%, rgba(103, 219, 103, 0.18), transparent 20%),
        linear-gradient(135deg, rgba(11, 109, 96, 0.22), rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-hero-copy strong {
    display: block;
    font-size: 1.6rem;
}

.login-hero-copy span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.96rem;
}

.login-mascot-hero {
    width: min(230px, 42%);
    margin-right: 0;
}

.login-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.madi-app-login {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 48px));
    grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 246, 0.94));
    box-shadow: 0 32px 90px rgba(4, 35, 37, 0.24);
}

.login-body:has(.madi-app-login) {
    background:
        radial-gradient(circle at 24% 14%, rgba(244, 122, 32, 0.18), transparent 25%),
        radial-gradient(circle at 75% 20%, rgba(24, 195, 156, 0.18), transparent 24%),
        linear-gradient(135deg, #071011 0%, #063b34 45%, #eef6f2 45.2%, #f9fffb 100%);
}

.madi-login-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 52px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 247, 0.96)),
        #fff;
}

.madi-logo-card {
    width: 172px;
    height: 106px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 12%, rgba(24, 195, 156, 0.18), transparent 34%),
        #030708;
    border: 1px solid rgba(24, 195, 156, 0.20);
    box-shadow: 0 18px 38px rgba(6, 47, 49, 0.18);
    padding: 8px 12px;
}

.madi-logo-card img {
    transform: scale(1.08);
}

.madi-login-brand h1 {
    color: var(--primary-dark);
    font-size: clamp(1.65rem, 2vw, 2rem);
}

.madi-login-copy {
    margin: clamp(40px, 8vh, 72px) 0 28px;
}

.madi-access-chip {
    background: rgba(244, 122, 32, 0.12);
    color: #a24408;
}

.madi-login-copy h2 {
    margin: 18px 0 12px;
    color: var(--primary-dark);
    font-size: clamp(2.25rem, 4.2vw, 3.55rem);
}

.madi-login-copy p {
    max-width: 440px;
    font-size: 1.02rem;
}

.madi-login-form {
    max-width: 440px;
    width: 100%;
}

.madi-login-form .mb-3,
.madi-login-form .mb-4 {
    margin-bottom: 18px;
}

.madi-login-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 800;
}

.madi-login-form .form-control {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border-color: rgba(11, 109, 96, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(6, 47, 49, 0.05);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 1px solid rgba(11, 109, 96, 0.18);
    border-radius: 12px;
    background: #eef8f4;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.password-toggle.showing {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.password-field-sm .form-control {
    min-height: 38px;
    padding-right: 44px;
}

.password-field-sm .password-toggle {
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.user-actions-stack {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.user-password-form {
    display: grid;
    grid-template-columns: minmax(180px, 220px) auto;
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.user-password-form .form-control {
    min-height: 38px;
}

.technician-profile-form {
    background: #fbfefd;
}

.technician-signature-preview {
    align-items: center;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    min-height: 58px;
    padding: 8px;
}

.technician-signature-preview img {
    display: block;
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
}

.madi-login-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.24rem rgba(24, 195, 156, 0.16);
}

.madi-login-button {
    display: block;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent-dark));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(11, 109, 96, 0.24);
}

.madi-login-button:hover {
    background: linear-gradient(135deg, #031f21, #085b51 58%, #0d785f);
}

.madi-login-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.madi-login-footer span {
    color: var(--madi-orange);
    font-weight: 800;
}

.madi-login-showcase {
    padding: clamp(18px, 3vw, 30px);
    background:
        radial-gradient(circle at 45% 24%, rgba(255, 180, 95, 0.5), transparent 20%),
        radial-gradient(circle at 66% 55%, rgba(24, 195, 156, 0.26), transparent 28%),
        linear-gradient(145deg, #070b0c 0%, #102526 42%, #063b34 100%);
}

.madi-showcase-glass {
    width: 100%;
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(18px, 3vw, 30px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
        rgba(3, 16, 17, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.madi-showcase-glass::before {
    content: "";
    position: absolute;
    inset: 12% -16% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 122, 32, 0.44), rgba(244, 122, 32, 0));
    pointer-events: none;
}

.madi-showcase-top,
.madi-showcase-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.madi-showcase-logo {
    width: min(150px, 42%);
    max-height: 70px;
    object-fit: contain;
}

.madi-showcase-top span,
.madi-showcase-bottom span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.madi-mascot-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 500px;
}

.madi-app-mascot {
    width: min(560px, 94%);
    max-height: 660px;
    object-fit: contain;
    filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.42));
}

.madi-showcase-bottom {
    align-items: flex-end;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(5, 25, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.madi-showcase-bottom strong {
    color: #fff;
    font-size: 1.2rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 290px;
    height: 100dvh;
    max-height: 100dvh;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(103, 219, 103, 0.18), transparent 22%),
        linear-gradient(180deg, #042325 0%, #0b6d60 100%);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1040;
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.66);
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 32px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

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

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

.sidebar-section-label {
    margin: 10px 10px 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.82);
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.role-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.content-area {
    margin-left: 290px;
    width: calc(100% - 290px);
    padding: 28px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.header-card {
    min-width: 220px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(20, 48, 85, 0.06);
}

.header-card span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.header-card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 700;
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(205, 232, 225, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(8, 60, 59, 0.05);
}

.panel-soft {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f9fdfb 0%, #eff8f4 100%);
    border: 1px solid var(--border);
}

.narrow-panel {
    max-width: 980px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.panel-header h3 {
    font-size: 1.35rem;
}

.support-page {
    display: grid;
    min-height: calc(100dvh - 160px);
    place-items: center;
}

.support-card {
    max-width: 720px;
    width: min(100%, 720px);
    display: grid;
    gap: 20px;
    padding: 28px;
    text-align: center;
}

.support-icon {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    border-radius: 16px;
    background: #e7f7f2;
    color: var(--primary);
    font-size: 1.7rem;
}

.support-icon svg,
.support-whatsapp-button svg {
    display: block;
    fill: currentColor;
    height: 1.12em;
    width: 1.12em;
}

.support-icon svg {
    height: 26px;
    width: 26px;
}

.support-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.support-copy h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.55rem;
    font-weight: 850;
}

.support-copy p:not(.eyebrow),
.support-about p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.support-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    text-align: left;
}

.support-contact div,
.support-about {
    min-width: 0;
    border: 1px solid rgba(14, 92, 86, 0.14);
    border-radius: 12px;
    background: #fbfefd;
    padding: 14px;
}

.support-contact span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-contact strong {
    color: var(--primary-dark);
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.support-whatsapp-button {
    align-items: center;
    background: #168c5a;
    border: 1px solid #13784d;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(22, 140, 90, 0.18);
    color: #fff;
    display: inline-flex;
    font-weight: 850;
    gap: 10px;
    justify-content: center;
    justify-self: center;
    min-height: 46px;
    padding: 0 18px;
}

.support-whatsapp-button:hover {
    background: #12784d;
    color: #fff;
}

.support-about {
    display: grid;
    gap: 8px;
    text-align: left;
}

.support-about h4 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 850;
}

.support-footer {
    color: #6b8581;
    font-size: 0.82rem;
    font-weight: 750;
}

.os-detail-header {
    align-items: start;
}

.os-detail-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    max-width: 760px;
    width: 100%;
}

.os-detail-actions .btn,
.os-detail-actions button {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: 0.88rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1.12;
    min-height: 36px;
    overflow: hidden;
    padding: 7px 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.os-detail-actions form {
    display: contents;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
}

.stat-card.accent {
    background: linear-gradient(180deg, rgba(103, 219, 103, 0.14), rgba(11, 109, 96, 0.06));
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
}

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

.quick-link {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-link:hover {
    background: #dbf3eb;
}

.store-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.store-card {
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(30, 196, 155, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 244, 0.96));
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(8, 60, 59, 0.08);
}

.store-card-scooter {
    background:
        radial-gradient(circle at top right, rgba(240, 174, 61, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 247, 0.96));
}

.store-card h4 {
    margin: 12px 0 10px;
    font-size: 1.25rem;
}

.store-card p {
    color: var(--muted);
    line-height: 1.6;
}

.store-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 92, 86, 0.1);
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-hero {
    overflow: hidden;
}

.dashboard-store {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.dashboard-store.compact {
    grid-template-columns: 1fr;
}

.dashboard-store-copy h3,
.dashboard-store-copy h4 {
    font-size: clamp(1.6rem, 2vw, 2rem);
    margin: 14px 0 10px;
}

.dashboard-store-copy p {
    color: var(--muted);
    max-width: 760px;
    line-height: 1.7;
}

.dashboard-store-celulares {
    background:
        radial-gradient(circle at 82% 18%, rgba(103, 219, 103, 0.18), transparent 26%),
        radial-gradient(circle at 12% 20%, rgba(24, 195, 156, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(7, 40, 43, 0.98), rgba(11, 109, 96, 0.94));
    border-radius: 28px;
    padding: 28px;
    color: #fff;
}

.dashboard-store-celulares p,
.dashboard-store-celulares .store-info-box span {
    color: rgba(255, 255, 255, 0.86);
}

.dashboard-store-scooter {
    background:
        radial-gradient(circle at 92% 10%, rgba(103, 219, 103, 0.10), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 246, 0.96));
    border-radius: 26px;
    padding: 24px;
    border: 1px solid var(--border);
}

.quick-actions-store {
    margin: 22px 0 18px;
}

.dashboard-store-celulares .quick-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dashboard-store-celulares .quick-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.store-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.store-info-box {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-store-scooter .store-info-box {
    border-color: var(--border);
    background: rgba(24, 195, 156, 0.06);
}

.store-info-box span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.store-mascot {
    width: min(270px, 100%);
    justify-self: end;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.22));
}

.store-mascot-photo {
    width: min(360px, 100%);
    max-height: 520px;
    object-fit: contain;
    align-self: center;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.34));
}

.operations-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(8, 60, 59, 0.06);
}

.operations-hero h3 {
    margin: 6px 0 8px;
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
}

.operations-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 22px;
    align-items: stretch;
}

.operation-card {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(8, 60, 59, 0.10);
}

.operation-card-primary {
    grid-template-columns: minmax(340px, 1fr) minmax(220px, 0.62fr);
    background:
        radial-gradient(circle at 88% 28%, rgba(244, 122, 32, 0.34), transparent 24%),
        radial-gradient(circle at 24% 10%, rgba(24, 195, 156, 0.18), transparent 28%),
        linear-gradient(135deg, #082f32 0%, #0b695c 100%);
    color: #fff;
}

.operation-card-scooter {
    background:
        radial-gradient(circle at 88% 10%, rgba(244, 122, 32, 0.16), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #eef8f4 100%);
}

.operation-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.operation-card h3 {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.02;
}

.operation-summary {
    max-width: 520px;
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.operation-card-primary .operation-summary,
.operation-card-primary .store-chip {
    color: rgba(255, 255, 255, 0.86);
}

.operation-card-primary .store-chip {
    background: rgba(255, 255, 255, 0.12);
}

.operation-actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.operation-action {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 109, 96, 0.16);
    color: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(8, 60, 59, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.operation-card-primary .operation-action {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.operation-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(8, 60, 59, 0.12);
}

.operation-action.primary {
    background: #fff;
    color: var(--primary-dark);
}

.operation-action.primary.scooter {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.operation-icon {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(24, 195, 156, 0.14);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.operation-card-primary .operation-action:not(.primary) .operation-icon,
.operation-action.primary.scooter .operation-icon {
    background: rgba(255, 255, 255, 0.14);
}

.operation-action strong,
.operation-action small {
    display: block;
}

.operation-action strong {
    font-size: 1.02rem;
}

.operation-action small {
    margin-top: 3px;
    color: inherit;
    opacity: 0.72;
}

.operation-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}

.operation-facts div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(11, 109, 96, 0.12);
}

.operation-card-primary .operation-facts div {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.operation-facts span,
.operation-facts strong {
    display: block;
}

.operation-facts span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.operation-card-primary .operation-facts span {
    color: rgba(255, 255, 255, 0.70);
}

.operation-facts strong {
    margin-top: 6px;
}

.operation-mascot {
    position: relative;
    z-index: 1;
    width: min(330px, 100%);
    align-self: end;
    justify-self: end;
    filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.34));
}

.operation-document-preview {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 156px;
    height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(11, 109, 96, 0.14);
    box-shadow: 0 24px 46px rgba(8, 60, 59, 0.12);
    color: var(--primary-dark);
}

.operation-document-preview i {
    font-size: 3.2rem;
    color: var(--madi-orange);
}

.operation-document-preview strong {
    font-size: 1.35rem;
}

.operation-document-preview span {
    color: var(--muted);
    font-weight: 700;
}

.example-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgba(24, 195, 156, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.executive-header {
    padding: 8px 0 4px;
}

.executive-title .eyebrow {
    color: #406765;
    letter-spacing: 0.14em;
}

.executive-title .page-title {
    color: #08282b;
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    line-height: 1.1;
    font-weight: 700;
}

.executive-contact {
    min-width: 300px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d8e8e4;
    box-shadow: 0 16px 38px rgba(8, 40, 43, 0.08);
}

.executive-contact strong {
    display: block;
    color: #08282b;
    font-size: 1.02rem;
}

.executive-contact a {
    color: #0b6d60;
    font-size: 0.92rem;
}

.ops-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 18px 26px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #d8e8e4;
    box-shadow: 0 18px 44px rgba(8, 40, 43, 0.07);
}

.ops-command-bar h3 {
    margin: 4px 0 6px;
    color: #08282b;
    font-size: clamp(1.65rem, 2.4vw, 2.3rem);
    font-weight: 700;
}

.ops-command-bar p:not(.eyebrow) {
    max-width: 780px;
    margin: 0;
    color: #4d6f6e;
    line-height: 1.65;
}

.ops-history-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #0b6d60;
    color: #0a5149;
    background: #fff;
    font-weight: 800;
}

.ops-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.ops-unit-card {
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #d8e8e4;
    box-shadow: 0 22px 54px rgba(8, 40, 43, 0.09);
}

.ops-unit-celulares {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(5, 45, 46, 0.98), rgba(10, 91, 80, 0.96)),
        #062f31;
    border-color: rgba(255, 255, 255, 0.10);
}

.ops-unit-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ops-unit-header span {
    display: block;
    color: #5f7977;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ops-unit-celulares .ops-unit-header span {
    color: rgba(255, 255, 255, 0.66);
}

.ops-unit-header h3 {
    margin: 8px 0 0;
    color: #08282b;
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.04;
    font-weight: 800;
}

.ops-unit-celulares .ops-unit-header h3 {
    color: #fff;
}

.ops-unit-code {
    min-width: 92px;
    height: 40px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #2d7069;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    overflow: visible;
    white-space: nowrap;
}

.ops-unit-celulares .ops-unit-code {
    background: #2d7069;
    color: #fff;
}

.ops-unit-description {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 12px 0 14px;
    color: #4d6f6e;
    line-height: 1.65;
}

.ops-unit-celulares .ops-unit-description {
    color: rgba(255, 255, 255, 0.82);
}

.ops-action-stack {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}

.ops-action {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 3px;
    align-items: center;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #08282b;
    background: #fff;
    border: 1px solid #dbe9e6;
    box-shadow: 0 12px 26px rgba(8, 40, 43, 0.06);
}

.ops-unit-celulares .ops-action {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.ops-action.primary,
.ops-action.primary.scooter {
    color: #08282b;
    background: #fff;
    border-color: #fff;
}

.ops-action.primary.scooter {
    color: #fff;
    background: #0a5f55;
    border-color: #0a5f55;
}

.ops-action > span:first-child {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 88px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e6f6f1;
    color: #0a5149;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.ops-unit-celulares .ops-action:not(.primary) > span:first-child,
.ops-action.primary.scooter > span:first-child {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ops-action strong,
.ops-action small {
    display: block;
}

.ops-action strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 1.06rem;
}

.ops-action small {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 2px;
    color: inherit;
    opacity: 0.68;
    line-height: 1.45;
}

.ops-card-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.ops-card-footer div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5faf8;
    border: 1px solid #dbe9e6;
}

.ops-unit-celulares .ops-card-footer div {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);
}

.ops-card-footer span,
.ops-card-footer strong {
    display: block;
}

.ops-card-footer span {
    color: #6c8381;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-unit-celulares .ops-card-footer span {
    color: rgba(255, 255, 255, 0.62);
}

.ops-card-footer strong {
    margin-top: 6px;
    color: #08282b;
}

.ops-unit-celulares .ops-card-footer strong {
    color: #fff;
}

.ops-unit-celulares,
.ops-unit-scooter {
    color: #08282b;
    background: #fff;
    border-color: #d8e8e4;
    border-top: 4px solid #0a5f55;
    box-shadow: 0 14px 34px rgba(8, 40, 43, 0.08);
}

.ops-unit-celulares .ops-unit-header span,
.ops-unit-celulares .ops-unit-description,
.ops-unit-celulares .ops-card-footer span {
    color: #5f7977;
}

.ops-unit-celulares .ops-unit-header h3,
.ops-unit-celulares .ops-card-footer strong {
    color: #08282b;
}

.ops-unit-celulares .ops-unit-code,
.ops-unit-scooter .ops-unit-code {
    background: #0a5f55;
    color: #fff;
}

.ops-unit-celulares .ops-action {
    color: #08282b;
    background: #fff;
    border-color: #dbe9e6;
    box-shadow: 0 10px 22px rgba(8, 40, 43, 0.05);
}

.ops-action.primary,
.ops-action.primary.scooter {
    color: #fff;
    background: #0a5f55;
    border-color: #0a5f55;
}

.ops-action.primary > span:first-child,
.ops-action.primary.scooter > span:first-child {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.ops-unit-celulares .ops-action:not(.primary) > span:first-child {
    background: #e6f6f1;
    color: #0a5149;
}

.ops-unit-celulares .ops-card-footer div {
    background: #f5faf8;
    border-color: #dbe9e6;
}

.ops-history-section {
    margin-top: 22px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #d8e8e4;
    box-shadow: 0 18px 44px rgba(8, 40, 43, 0.07);
}

.ops-section-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.ops-section-title h3 {
    margin: 0;
    color: #08282b;
    font-size: 1.55rem;
    font-weight: 800;
}

.ops-section-title p:not(.eyebrow) {
    margin: 0;
    color: #5f7977;
    line-height: 1.55;
}

.ops-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.ops-history-panel {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dbe9e6;
    background: #fbfdfc;
}

.ops-history-panel.celulares {
    border-color: rgba(10, 95, 85, 0.22);
}

.ops-history-panel.scooter {
    border-color: rgba(13, 87, 124, 0.18);
}

.ops-history-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #e2ece9;
}

.ops-history-panel-head span {
    display: block;
    color: #6b8380;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ops-history-panel-head h3 {
    margin: 6px 0 4px;
    color: #08282b;
    font-size: 1.35rem;
    font-weight: 800;
}

.ops-history-panel-head p {
    max-width: 420px;
    margin: 0;
    color: #5a7370;
    line-height: 1.45;
}

.ops-history-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 11px;
    color: #0a5149;
    background: #e8f6f2;
    font-size: 0.85rem;
    font-weight: 850;
}

.ops-history-list {
    display: grid;
    gap: 0;
}

.ops-history-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    min-height: auto;
    padding: 16px 18px;
    border-bottom: 1px solid #e7efed;
    background: #fff;
}

.ops-history-row:last-child {
    border-bottom: 0;
}

.ops-history-record {
    display: grid;
    grid-template-columns: minmax(150px, 0.92fr) minmax(210px, 1.18fr);
    gap: 12px 16px;
    align-items: start;
}

.ops-history-record-main,
.ops-history-record-product,
.ops-history-record-meta div {
    min-width: 0;
}

.ops-history-record-main span,
.ops-history-record-product span,
.ops-history-record-meta span {
    display: block;
    margin-bottom: 4px;
    color: #607b78;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-history-record-main strong,
.ops-history-record-product strong,
.ops-history-record-meta strong {
    display: block;
    color: #08282b;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ops-history-record-main small {
    display: block;
    margin-top: 5px;
    color: #607b78;
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ops-history-record-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ops-history-record-meta div {
    padding-top: 10px;
    border-top: 1px solid #e7efed;
}

.ops-history-card-top,
.ops-history-card-body {
    display: grid;
    gap: 10px;
}

.ops-history-card-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-history-card-body {
    grid-template-columns: 1fr;
}

.ops-history-card-top div,
.ops-history-card-body div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2ece9;
}

.ops-history-card-top span,
.ops-history-card-body span {
    display: block;
    margin-bottom: 4px;
    color: #607b78;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-history-card-top strong,
.ops-history-card-body strong {
    display: block;
    color: #08282b;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ops-history-main,
.ops-history-detail {
    display: none;
    min-width: 0;
    gap: 3px;
}

.ops-history-main strong,
.ops-history-detail strong {
    color: #08282b;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.ops-history-main span,
.ops-history-detail span {
    color: #0a6b60;
    font-size: 0.82rem;
    font-weight: 800;
}

.ops-history-main small,
.ops-history-detail small {
    color: #647d7a;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.ops-history-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ops-history-actions form {
    margin: 0;
}

.ops-history-actions a,
.ops-history-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #cbe2dd;
    color: #0a5149;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 850;
}

.ops-history-actions button {
    color: #9b1c1c;
    border-color: #efc7c7;
}

.ops-empty-state {
    padding: 22px 18px;
    color: #607b78;
    background: #f7fbfa;
    line-height: 1.5;
}

.report-results {
    overflow: hidden;
}

.report-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.report-result-panel {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dbe9e6;
    background: #fbfdfc;
}

.report-result-panel.scooter {
    border-color: rgba(13, 87, 124, 0.18);
}

.report-result-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid #e3eeeb;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}

.report-result-head h3 {
    color: #08282b;
    font-size: 1.22rem;
    font-weight: 850;
}

.report-result-head span {
    display: block;
    margin-top: 6px;
    color: #607b78;
    line-height: 1.45;
}

.report-result-head > strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: #e8f6f2;
    color: #0a5149;
    font-size: 1.1rem;
}

.report-table {
    table-layout: fixed;
    margin-bottom: 0;
}

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

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

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

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

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

.report-table th:nth-child(6),
.report-table td:nth-child(6) {
    width: 9%;
}

.report-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.history-results {
    overflow: hidden;
}

.history-results .table-responsive {
    overflow-x: visible;
}

.history-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.history-group-panel {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dbe9e6;
    background: #fbfdfc;
}

.history-group-panel.scooter {
    border-color: rgba(13, 87, 124, 0.18);
}

.history-group-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid #e2ece9;
    background: linear-gradient(180deg, #fff 0%, #f6fbf9 100%);
}

.history-group-head h3 {
    color: #08282b;
    font-size: 1.25rem;
    font-weight: 850;
}

.history-group-head span {
    display: block;
    margin-top: 6px;
    color: #607b78;
    line-height: 1.45;
}

.history-group-head > strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: #e8f6f2;
    color: #0a5149;
    font-size: 1.1rem;
}

.history-card-list {
    display: grid;
}

.history-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.35fr) minmax(130px, 0.7fr) minmax(260px, auto);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e7efed;
}

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

.history-card-id,
.history-card-main,
.history-card-value {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.history-card span {
    color: #0a6b60;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-card strong {
    color: #08282b;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.history-card small {
    color: #647d7a;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.history-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.history-card-actions form {
    margin: 0;
}

.detail-return-surface {
    min-height: calc(100vh - 180px);
}

.detail-document-panel {
    cursor: default;
}


.module-card {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.notice-card {
    background: linear-gradient(180deg, rgba(24, 195, 156, 0.08), rgba(103, 219, 103, 0.08));
}

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

.payment-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(11, 109, 96, 0.06);
    border: 1px solid var(--border);
}

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

.payment-check strong {
    font-size: 1.15rem;
}

.price-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.price-summary-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(24, 195, 156, 0.06);
    border: 1px solid var(--border);
}

.price-summary-box.highlight {
    background: linear-gradient(135deg, rgba(103, 219, 103, 0.12), rgba(24, 195, 156, 0.12));
}

.price-summary-box span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.price-summary-box strong {
    font-size: 1.2rem;
}

.simple-list {
    padding-left: 18px;
    margin: 0 0 20px;
    color: var(--text);
}

.simple-list li + li {
    margin-top: 6px;
}

.table thead th {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
}

.table td,
.table th {
    padding-top: 16px;
    padding-bottom: 16px;
    border-color: #edf2f8;
}

.table-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: end;
}

.table-actions.wrap {
    flex-wrap: wrap;
}

.service-order-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.service-order-table th:nth-child(1),
.service-order-table td:nth-child(1) {
    width: 7%;
}

.service-order-table th:nth-child(2),
.service-order-table td:nth-child(2) {
    width: 16%;
}

.service-order-table th:nth-child(3),
.service-order-table td:nth-child(3) {
    width: 13%;
}

.service-order-table th:nth-child(4),
.service-order-table td:nth-child(4) {
    width: 9%;
}

.service-order-table th:nth-child(5),
.service-order-table td:nth-child(5) {
    width: 16%;
}

.service-order-table th:nth-child(6),
.service-order-table td:nth-child(6),
.service-order-table th:nth-child(7),
.service-order-table td:nth-child(7) {
    width: 10%;
}

.service-order-table th:nth-child(8),
.service-order-table td:nth-child(8) {
    width: 19%;
}

.service-order-table td,
.service-order-table th {
    overflow-wrap: anywhere;
    padding-left: 8px;
    padding-right: 8px;
    vertical-align: middle;
}

.service-order-table td:nth-child(6),
.service-order-table td:nth-child(7) {
    white-space: nowrap;
}

.service-order-table td:nth-child(2) strong,
.service-order-table td:nth-child(3) strong {
    display: block;
    line-height: 1.15;
}

.service-order-table td:nth-child(3) strong {
    word-break: keep-all;
}

.history-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: center;
    gap: 6px;
}

.history-action-grid form {
    display: contents;
    margin: 0;
}

.history-action-grid .btn {
    font-size: 0.76rem;
    min-height: 32px;
    overflow: hidden;
    padding: 5px 7px;
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.status-pill.active {
    background: rgba(30, 196, 155, 0.16);
    color: #0e5c56;
}

.status-pill.cancelled {
    background: rgba(199, 68, 68, 0.12);
    color: var(--danger);
}

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

.detail-item {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.detail-item span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.detail-heading {
    margin-bottom: 12px;
    font-size: 1rem;
}

.note-block {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fbfdff;
    line-height: 1.7;
}

.os-photo-upload {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.os-photo-upload .form-control {
    max-width: 340px;
}

.os-device-photo-shell {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

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

.os-device-photo-grid .os-device-photo-shell {
    max-width: none;
}

.os-device-photo-shell img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fcfa;
}

.os-photo-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.os-photo-actions .btn,
.os-photo-actions form {
    width: 100%;
}

.os-photo-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    white-space: normal;
}

.backup-card {
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f2fbf7 0%, #e8f6f0 100%);
    border: 1px solid var(--border);
}

.logo-preview-shell {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #062726 0%, #0e5c56 100%);
    display: inline-block;
}

.logo-preview {
    max-width: 220px;
    max-height: 100px;
    display: block;
    object-fit: contain;
    border-radius: 14px;
    background: transparent;
    padding: 0;
}

.flash-stack {
    margin-bottom: 18px;
}

.sidebar-overlay {
    display: none;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #d5dfec;
    min-height: 48px;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.thermal-panel-note {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(30, 196, 155, 0.12), rgba(14, 92, 86, 0.04));
    border: 1px solid var(--border);
    color: var(--text);
}

.thermal-body {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(103, 219, 103, 0.14), transparent 22%),
        linear-gradient(180deg, #eff9f5 0%, #e5f3ee 100%);
}

.thermal-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.thermal-toolbar form {
    margin: 0;
}

.thermal-ticket {
    width: min(80mm, 100%);
    margin: 0 auto;
    padding: 6mm 5.5mm 7mm;
    background: #fff;
    border: 1px dashed #5ccf88;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(8, 60, 59, 0.12);
    color: #000;
    overflow: hidden;
}

.thermal-logo-shell {
    background: #061d1d;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
}

.thermal-logo-shell img {
    width: 100%;
    display: block;
}

.thermal-logo-print-name {
    display: none;
}

.thermal-print-brand {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    text-align: center;
    overflow: hidden;
}

.thermal-print-logo {
    display: block;
    width: 40mm !important;
    max-width: 180px !important;
    height: auto !important;
    justify-self: center;
    margin-inline: auto;
    object-fit: contain;
    filter: none;
}

.thermal-ticket h1 {
    font-size: 1rem;
    margin: 0 0 6px;
    text-align: center;
}

.thermal-highlight {
    margin: 12px 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(103, 219, 103, 0.16), rgba(24, 195, 156, 0.16));
    border: 1px solid rgba(103, 219, 103, 0.38);
    text-align: center;
}

.thermal-highlight span {
    display: block;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #446662;
}

.thermal-highlight strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 4px;
}

.thermal-subtitle,
.thermal-note,
.thermal-company {
    margin: 0;
    font-size: 0.73rem;
    line-height: 1.5;
    text-align: center;
}

.thermal-divider {
    height: 1px;
    margin: 10px 0;
    background: repeating-linear-gradient(
        90deg,
        #8bbfb2 0,
        #8bbfb2 10px,
        transparent 10px,
        transparent 16px
    );
}

.thermal-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.78rem;
}

.thermal-row span {
    color: #466662;
}

.thermal-row strong {
    text-align: right;
}

.thermal-warranty-note {
    margin: 0;
    color: #111;
    font-size: 0.66rem;
    line-height: 1.38;
    text-align: left;
}

.thermal-warranty-note strong {
    display: block;
    margin-bottom: 4px;
    text-align: center;
    font-size: 0.72rem;
}

.thermal-warranty-note p {
    margin: 0 0 4px;
}

.thermal-warranty-note ul {
    margin: 0 0 4px 12px;
    padding: 0;
}

.thermal-warranty-note li {
    margin: 0 0 2px;
}

.thermal-mini-rules {
    margin: 0;
    font-size: 0.69rem;
    line-height: 1.5;
    text-align: center;
    color: #496563;
}

.coupon-lookup .panel {
    background:
        radial-gradient(circle at top right, rgba(103, 219, 103, 0.12), transparent 24%),
        rgba(255, 255, 255, 0.95);
}

.lookup-result {
    padding-top: 6px;
}

.voucher-body {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(103, 219, 103, 0.16), transparent 20%),
        linear-gradient(180deg, #eef8f4 0%, #e4f0ec 100%);
}

.voucher-sheet {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.voucher-card {
    min-height: 620px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(6, 47, 49, 0.12);
    box-shadow: 0 24px 60px rgba(6, 47, 49, 0.12);
}

.voucher-front {
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(103, 219, 103, 0.18), transparent 18%),
        linear-gradient(180deg, #062f31 0%, #0d5b4c 100%);
}

.voucher-back {
    background:
        radial-gradient(circle at 92% 10%, rgba(103, 219, 103, 0.10), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}

.voucher-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}

.voucher-brand img {
    width: 180px;
    max-width: 48%;
}

.voucher-logo-shell {
    width: 190px;
    max-width: 48%;
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: 10px 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 12%, rgba(24, 195, 156, 0.18), transparent 34%),
        #030708;
    border: 1px solid rgba(24, 195, 156, 0.18);
    box-shadow: 0 14px 28px rgba(6, 47, 49, 0.16);
}

.voucher-logo-shell img {
    width: 100%;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.voucher-brand span {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voucher-brand-light span {
    color: var(--primary-dark);
}

.voucher-front-body {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 18px;
    padding: 12px 24px 0;
}

.voucher-mascot {
    width: min(280px, 72%);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.voucher-value {
    width: 100%;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.voucher-value span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.voucher-value strong {
    display: block;
    font-size: 2rem;
    margin: 8px 0;
}

.voucher-value small {
    color: rgba(255, 255, 255, 0.78);
}

.voucher-code-block {
    margin: 24px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.voucher-code-block span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.voucher-code-block strong {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
}

.voucher-instructions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 26px 24px 10px;
}

.voucher-step {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
}

.voucher-step strong {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: var(--primary);
    color: #fff;
}

.voucher-step p,
.voucher-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.voucher-meta {
    padding: 0 24px;
}

.voucher-note {
    padding: 20px 24px 24px;
}

.store-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.store-mode-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(11, 109, 96, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 242, 0.92));
    box-shadow: 0 12px 28px rgba(11, 109, 96, 0.08);
}

.store-mode-card strong,
.store-mode-card span,
.store-mode-card p {
    display: block;
}

.store-mode-label,
.header-brand-note,
.thermal-badge {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 800;
}

.store-mode-label {
    color: var(--primary);
    margin-bottom: 10px;
}

.store-mode-card strong {
    font-size: 1rem;
    margin-bottom: 8px;
}

.store-mode-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-hero-note {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.header-brand-note {
    display: inline-flex;
    margin-top: 8px;
    color: var(--primary);
}

.thermal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(24, 195, 156, 0.1);
    color: var(--primary);
}

.thermal-code-box {
    margin: 18px 0 10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px dashed rgba(11, 109, 96, 0.32);
    background: rgba(232, 246, 242, 0.65);
    text-align: center;
}

.thermal-code-box span,
.voucher-status-line span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.thermal-code-box strong,
.voucher-status-line strong {
    display: block;
    margin-top: 6px;
    font-size: 1.05rem;
}

.voucher-status-line {
    margin: 0 24px 24px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1399px) {
    .history-results {
        overflow: visible;
    }

    .history-results .table-responsive {
        overflow: visible;
    }

    .service-order-table {
        border-collapse: separate;
        border-spacing: 0 12px;
        min-width: 0;
    }

    .service-order-table thead {
        display: none;
    }

    .service-order-table,
    .service-order-table tbody,
    .service-order-table tr,
    .service-order-table td {
        display: block;
        width: 100% !important;
    }

    .service-order-table tr {
        background: #fff;
        border: 1px solid var(--border);
        border-left: 5px solid rgba(11, 109, 96, 0.28);
        border-radius: 16px;
        box-shadow: 0 10px 22px rgba(8, 60, 59, 0.06);
        padding: 12px;
    }

    .service-order-table td {
        align-items: center;
        border: 0;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 8px 2px;
        white-space: normal;
    }

    .service-order-table td::before {
        color: var(--muted);
        content: attr(data-label);
        flex: 0 0 104px;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .service-order-table td:nth-child(6),
    .service-order-table td:nth-child(7) {
        white-space: normal;
    }

    .service-order-table .service-actions-cell {
        display: block;
    }

    .service-order-table .service-actions-cell::before {
        display: block;
        margin-bottom: 8px;
    }

    .history-action-grid {
        grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    }
}

@media (max-width: 1199px) {
    .stats-grid,
    .quick-actions,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-detail-actions {
        grid-template-columns: repeat(3, minmax(128px, 1fr));
        max-width: none;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 24, 43, 0.44);
        z-index: 1030;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    .content-header,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-card {
        min-width: auto;
    }

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

    .dashboard-store {
        grid-template-columns: 1fr;
    }

    .login-store-grid,
    .voucher-sheet,
    .store-mode-grid,
    .voucher-instructions {
        grid-template-columns: 1fr;
    }

    .store-mascot {
        justify-self: center;
        width: min(240px, 72%);
    }

    .store-mascot-photo {
        width: min(330px, 86%);
        max-height: 430px;
    }

    .madi-app-login {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .operations-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-command-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-board {
        grid-template-columns: 1fr;
    }

    .ops-history-grid {
        grid-template-columns: 1fr;
    }

    .ops-history-record {
        grid-template-columns: 1fr;
    }

    .ops-history-record-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-unit-card {
        min-height: auto;
    }

    .operations-grid,
    .operation-card-primary {
        grid-template-columns: 1fr;
    }

    .operation-card {
        min-height: auto;
    }

    .operation-mascot {
        justify-self: center;
        width: min(300px, 74%);
        margin-top: 18px;
    }

    .operation-document-preview {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 130px;
        margin-top: 22px;
    }

    .madi-login-showcase {
        min-height: 520px;
    }

    .madi-mascot-stage {
        min-height: 380px;
    }

    .madi-app-mascot {
        width: min(440px, 90%);
    }

    .history-results {
        overflow: visible;
    }

    .history-results .table-responsive {
        overflow: visible;
    }

    .service-order-table {
        border-collapse: separate;
        border-spacing: 0 12px;
        min-width: 0;
    }

    .service-order-table thead {
        display: none;
    }

    .service-order-table,
    .service-order-table tbody,
    .service-order-table tr,
    .service-order-table td {
        display: block;
        width: 100% !important;
    }

    .service-order-table tr {
        background: #fff;
        border: 1px solid var(--border);
        border-left: 5px solid rgba(11, 109, 96, 0.28);
        border-radius: 16px;
        box-shadow: 0 10px 22px rgba(8, 60, 59, 0.06);
        padding: 12px;
    }

    .service-order-table td {
        align-items: center;
        border: 0;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 8px 2px;
    }

    .service-order-table td::before {
        color: var(--muted);
        content: attr(data-label);
        flex: 0 0 104px;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .service-order-table .service-actions-cell {
        display: block;
    }

    .service-order-table .service-actions-cell::before {
        display: block;
        margin-bottom: 8px;
    }

    .history-action-grid {
        grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    }
}

@media (max-width: 767px) {
    .stats-grid,
    .quick-actions,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .login-panel,
    .login-aside {
        padding: 28px;
    }

    .content-area {
        padding: 16px;
        min-width: 0;
        overflow: visible;
        padding-bottom: 82px;
    }

    .panel {
        padding: 18px;
    }

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

    .os-detail-actions .btn,
    .os-detail-actions button {
        font-size: 0.82rem;
        min-height: 34px;
        padding: 7px 8px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-actions-stack {
        justify-items: stretch;
    }

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

    .login-body:has(.madi-app-login) {
        padding: 14px;
    }

    .madi-login-panel {
        padding: 24px;
    }

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

    .madi-logo-card {
        width: 92px;
        height: 68px;
        border-radius: 18px;
    }

    .madi-login-copy {
        margin: 32px 0 24px;
    }

    .madi-login-copy h2 {
        font-size: 2.1rem;
    }

    .madi-login-showcase {
        padding: 18px;
        min-height: 440px;
    }

    .operations-hero,
    .operation-card {
        padding: 22px;
        border-radius: 22px;
    }

    .operation-card h3 {
        font-size: 2rem;
    }

    .ops-command-bar,
    .ops-unit-card,
    .ops-history-section {
        padding: 22px;
        border-radius: 18px;
        min-width: 0;
    }

    .ops-history-panel-head,
    .ops-history-row,
    .history-group-head,
    .history-card,
    .report-result-head {
        grid-template-columns: 1fr;
    }

    .ops-history-panel-head {
        flex-direction: column;
    }

    .ops-history-actions {
        justify-content: flex-start;
    }

    .history-card-actions {
        justify-content: flex-start;
    }

    .ops-action {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 12px;
        padding: 10px;
    }

    .ops-action > span:first-child {
        width: 68px;
        font-size: 0.62rem;
    }

    .ops-card-footer {
        grid-template-columns: 1fr;
    }

    .operation-facts {
        grid-template-columns: 1fr;
    }

    .madi-showcase-top,
    .madi-showcase-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .madi-mascot-stage {
        min-height: 320px;
    }

    .madi-app-mascot {
        width: min(360px, 100%);
    }
}

.os-page-panel {
    max-width: 1480px;
    overflow: hidden;
}

.os-form {
    display: grid;
    gap: 14px;
}

.os-form-bar,
.os-section-grid,
.os-split-grid,
.os-checklist-grid,
.os-detail-grid {
    display: grid;
    gap: 14px;
}

.os-form-bar {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(14, 92, 86, 0.16);
    border-radius: 8px;
    background: #f8fcfa;
}

.os-section-grid.top {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.os-section-grid.middle {
    grid-template-columns: 1fr;
}

.os-section-grid.bottom {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.os-block {
    padding: 14px;
    border: 1px solid rgba(14, 92, 86, 0.16);
    border-radius: 8px;
    background: #ffffff;
    min-width: 0;
}

.os-block.wide {
    min-width: 0;
}

.os-block h4,
.os-block h5 {
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.os-block h4 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.os-block h5 {
    margin: 0 0 10px;
    font-size: 0.86rem;
}

.os-check-grid {
    display: grid;
    gap: 7px 8px;
}

.os-check-grid.one {
    grid-template-columns: 1fr;
}

.os-check-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

.os-check-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.os-check-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.os-check-grid.dense {
    gap: 6px 7px;
}

.os-check {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid rgba(14, 92, 86, 0.14);
    border-radius: 6px;
    background: #fbfefd;
    color: #173b38;
    font-size: 0.84rem;
    line-height: 1.28;
    overflow: hidden;
}

.os-check input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.os-check span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.os-check.auto-marked {
    border-color: rgba(24, 149, 126, 0.45);
    background: #eaf8f4;
}

.os-auto-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(180px, 0.34fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(14, 92, 86, 0.18);
    border-radius: 8px;
    background: #edf8f5;
}

.os-auto-bar .btn {
    min-height: 44px;
    margin-top: 30px;
    white-space: nowrap;
}

.os-auto-status {
    min-height: 42px;
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #ffffff;
    color: #0b514a;
    font-weight: 800;
    line-height: 1.25;
}

.text-quality-status {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #0b514a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.os-split-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.os-collapsible {
    min-width: 0;
}

.os-block-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    min-height: 34px;
}

.os-block-summary::-webkit-details-marker {
    display: none;
}

.os-block-summary span {
    color: var(--brand-dark);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
}

.os-block-summary small {
    color: var(--muted);
    flex: 1 1 auto;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.os-block-summary::after {
    align-items: center;
    background: #edf8f5;
    border: 1px solid rgba(14, 92, 86, 0.18);
    border-radius: 6px;
    color: var(--brand-dark);
    content: "+";
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 1.1rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.os-collapsible[open] > .os-block-summary::after {
    content: "-";
}

.os-collapsible-body {
    padding-top: 12px;
}

.os-checklist-block {
    overflow: visible;
}

.os-checklist-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: start;
}

.os-form-actions {
    display: flex;
    justify-content: flex-end;
}

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

.quote-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 6px 14px rgba(8, 40, 43, 0.10);
    overflow-wrap: normal;
    word-break: normal;
}

.detail-item strong .quote-pill,
.stat-card strong .quote-pill {
    width: 100%;
    min-height: 34px;
    padding-inline: 14px;
}

.quote-pill.quote-red {
    background: #b91f2f;
}

.quote-pill.quote-blue {
    background: #246fd1;
}

.quote-pill.quote-teal {
    background: #087f8c;
}

.quote-pill.quote-green {
    background: #158b55;
}

.quote-pill.quote-orange {
    background: #c56a1b;
}

.quote-pill.quote-gray {
    background: #5b6670;
}

.quote-text.quote-red,
.quote-text.quote-blue,
.quote-text.quote-teal,
.quote-text.quote-green,
.quote-text.quote-orange,
.quote-text.quote-gray {
    background: transparent;
}

.quote-text.quote-red {
    color: #a92f2f;
}

.quote-text.quote-blue {
    color: #1d5fb5;
}

.quote-text.quote-teal {
    color: #08717c;
}

.quote-text.quote-green {
    color: #117846;
}

.quote-text.quote-orange {
    color: #a65513;
}

.quote-text.quote-gray {
    color: #4f5b63;
}

.quote-row {
    border-left: 5px solid transparent;
}

.quote-row.quote-red {
    border-left-color: #c94141;
}

.quote-row.quote-blue {
    border-left-color: #246fd1;
}

.quote-row.quote-teal {
    border-left-color: #087f8c;
}

.quote-row.quote-green {
    border-left-color: #158b55;
}

.quote-row.quote-orange {
    border-left-color: #c56a1b;
}

.quote-row.quote-gray {
    border-left-color: #5b6670;
}

.quote-select {
    border-left-width: 5px;
}

.technician-filter {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1.25fr) auto;
    gap: 12px;
    align-items: end;
}

.technician-welcome-copy {
    color: var(--muted);
    margin: 4px 0 0;
}

.quote-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.quote-legend .quote-pill {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.68rem;
}

.technician-board,
.technician-kanban {
    display: grid;
    gap: 14px;
}

.technician-kanban {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    min-width: 0;
}

.technician-column {
    min-width: 0;
    border: 1px solid #e4a0a0;
    border-top: 7px solid #c94141;
    border-radius: 8px;
    background: #fff1f1;
    overflow: hidden;
}

.technician-column.quote-red {
    border-color: #e4a0a0;
    border-top-color: #c94141;
    background: #fff1f1;
}

.technician-column.quote-blue {
    border-color: #9fc0ef;
    border-top-color: #246fd1;
    background: #eef5ff;
}

.technician-column.quote-teal {
    border-color: #8bcbd2;
    border-top-color: #087f8c;
    background: #eefbfc;
}

.technician-column.quote-green {
    border-color: #91d4af;
    border-top-color: #158b55;
    background: #effaf4;
}

.technician-column.quote-orange {
    border-color: #e0b07f;
    border-top-color: #c56a1b;
    background: #fff4e9;
}

.technician-column.quote-gray {
    border-color: #b7c0c6;
    border-top-color: #5b6670;
    background: #f3f6f7;
}

.technician-column-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 84px;
    padding: 13px 14px;
    background: #c94141;
    color: #fff;
    border-bottom: 0;
}

.technician-column-head > div {
    min-width: 0;
}

.technician-column.quote-blue .technician-column-head {
    background: #246fd1;
}

.technician-column.quote-teal .technician-column-head {
    background: #087f8c;
}

.technician-column.quote-green .technician-column-head {
    background: #158b55;
}

.technician-column.quote-orange .technician-column-head {
    background: #c56a1b;
}

.technician-column.quote-gray .technician-column-head {
    background: #5b6670;
}

.technician-column-head .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.technician-column-head h3 {
    margin: 3px 0 0;
    font-size: 0.94rem;
    line-height: 1.2;
    color: #fff;
    overflow-wrap: anywhere;
}

.technician-column-head > strong {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: #a92f2f;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.technician-column.quote-blue .technician-column-head > strong {
    color: #1d5fb5;
}

.technician-column.quote-teal .technician-column-head > strong {
    color: #08717c;
}

.technician-column.quote-green .technician-column-head > strong {
    color: #117846;
}

.technician-column.quote-orange .technician-column-head > strong {
    color: #a65513;
}

.technician-column.quote-gray .technician-column-head > strong {
    color: #4f5b63;
}

.technician-column-body {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.technician-order-card {
    border: 1px solid #e3a1a1;
    border-left: 9px solid #c94141;
    border-radius: 8px;
    background: #fff7f7;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(8, 60, 59, 0.05);
}

.technician-order-card.quote-red {
    border-color: #e3a1a1;
    border-left-color: #c94141;
    background: #fff7f7;
}

.technician-order-card.quote-blue {
    border-color: #aac7ed;
    border-left-color: #246fd1;
    background: #f5f9ff;
}

.technician-order-card.quote-teal {
    border-color: #98d0d6;
    border-left-color: #087f8c;
    background: #f1fbfc;
}

.technician-order-card.quote-green {
    border-color: #9dd5b6;
    border-left-color: #158b55;
    background: #f4fbf6;
}

.technician-order-card.quote-orange {
    border-color: #e0b07f;
    border-left-color: #c56a1b;
    background: #fff8f0;
}

.technician-order-card.quote-gray {
    border-color: #bac3c8;
    border-left-color: #5b6670;
    background: #f7f9fa;
}

.technician-order-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.technician-order-head > div {
    min-width: 0;
}

.technician-order-head .quote-pill {
    flex: 0 1 160px;
    justify-content: center;
    text-align: center;
}

.technician-order-head h3 {
    margin: 4px 0 5px;
    font-size: 1rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.technician-order-head p {
    margin: 0;
    color: var(--muted);
}

.technician-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 11px 0;
}

.technician-summary-grid div {
    min-width: 0;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid rgba(14, 92, 86, 0.12);
    border-radius: 7px;
    background: #f8fcfa;
}

.technician-summary-grid .technician-budget-state {
    border-width: 0;
    color: #fff;
}

.technician-summary-grid .technician-budget-state.quote-red {
    background: #c94141;
}

.technician-summary-grid .technician-budget-state.quote-blue {
    background: #246fd1;
}

.technician-summary-grid .technician-budget-state.quote-teal {
    background: #087f8c;
}

.technician-summary-grid .technician-budget-state.quote-green {
    background: #158b55;
}

.technician-summary-grid .technician-budget-state.quote-orange {
    background: #c56a1b;
}

.technician-summary-grid .technician-budget-state.quote-gray {
    background: #5b6670;
}

.technician-summary-grid span,
.technician-summary-grid strong {
    display: block;
}

.technician-summary-grid span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.technician-summary-grid strong {
    margin-top: 4px;
    color: var(--primary-dark);
    font-size: 0.88rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.technician-summary-grid .technician-budget-state span,
.technician-summary-grid .technician-budget-state strong {
    color: #fff;
}

.technician-reminder-box,
.os-denial-fields,
.technician-denial-fields {
    border: 1px solid rgba(197, 106, 27, 0.24);
    border-radius: 8px;
    background: #fffaf4;
    padding: 10px;
}

.technician-reminder-box {
    display: grid;
    gap: 7px;
    margin: 10px 0;
}

.technician-reminder-box span {
    display: block;
    color: #a65513;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.technician-reminder-box strong,
.technician-reminder-box p {
    margin: 0;
    color: var(--primary-dark);
    line-height: 1.3;
}

.technician-denial-fields h5,
.os-denial-fields h5 {
    margin: 0 0 8px;
    color: #a65513;
    font-size: 0.86rem;
    font-weight: 800;
}

.reminder-date-row {
    display: flex;
    gap: 7px;
}

.reminder-date-row .form-control {
    min-width: 0;
}

.reminder-date-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.technician-work-form textarea {
    resize: vertical;
}

.technician-edit-panel,
.technician-denial-panel {
    margin-top: 12px;
    border-top: 1px solid rgba(14, 92, 86, 0.12);
    padding-top: 10px;
}

.technician-edit-panel summary,
.technician-denial-panel summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-weight: 800;
}

.technician-denial-panel summary {
    color: #a65513;
}

.technician-edit-panel[open] summary,
.technician-denial-panel[open] summary {
    margin-bottom: 12px;
}

.technician-denial-form textarea {
    resize: vertical;
}

.technician-card-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.technician-card-actions form {
    margin: 0;
}

.technician-card-actions .btn {
    white-space: nowrap;
}

.technician-empty-column {
    min-height: 50px;
    padding: 14px;
    border: 1px dashed rgba(14, 92, 86, 0.22);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1599px) {
    .technician-kanban {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .os-section-grid.top,
    .os-section-grid.bottom,
    .os-split-grid,
    .os-checklist-grid,
    .os-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .os-section-grid.middle {
        grid-template-columns: 1fr;
    }

    .os-form-bar,
    .os-auto-bar {
        grid-template-columns: 1fr 1fr;
    }

    .technician-filter {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 767px) {
    .os-form-bar,
    .os-section-grid.top,
    .os-section-grid.bottom,
    .os-section-grid.middle,
    .os-split-grid,
    .os-checklist-grid,
    .os-detail-grid,
    .os-auto-bar,
    .technician-filter,
    .os-check-grid.two,
    .os-check-grid.three,
    .os-check-grid.four {
        grid-template-columns: 1fr;
    }

    .os-block {
        padding: 12px;
    }

    .os-form-actions .btn {
        width: 100%;
    }

    .technician-board,
    .technician-kanban,
    .technician-summary-grid {
        grid-template-columns: 1fr;
    }

    .technician-order-head,
    .technician-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .technician-card-actions form,
    .technician-card-actions .btn {
        width: 100%;
    }

    .reminder-date-row {
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 1399px) {
    .service-order-table {
        border-spacing: 0 10px;
    }

    .service-order-table tr {
        display: grid;
        grid-template-columns: 82px minmax(180px, 1.25fr) minmax(145px, 1fr) minmax(125px, 0.75fr);
        grid-template-areas:
            "os cliente aparelho status"
            "tecnico entrada orcamento orcamento"
            "actions actions actions actions";
        gap: 9px 14px;
        padding: 12px 14px;
    }

    .service-order-table td {
        display: grid;
        gap: 3px;
        align-content: center;
        justify-content: stretch;
        min-width: 0;
        padding: 0;
        text-align: left;
    }

    .service-order-table td::before {
        flex: none;
        margin: 0;
        font-size: 0.66rem;
        line-height: 1.1;
    }

    .service-order-table td:nth-child(1) {
        grid-area: os;
    }

    .service-order-table td:nth-child(2) {
        grid-area: cliente;
    }

    .service-order-table td:nth-child(3) {
        grid-area: aparelho;
    }

    .service-order-table td:nth-child(4) {
        grid-area: tecnico;
    }

    .service-order-table td:nth-child(5) {
        grid-area: orcamento;
    }

    .service-order-table td:nth-child(6) {
        grid-area: entrada;
    }

    .service-order-table td:nth-child(7) {
        grid-area: status;
    }

    .service-order-table td:nth-child(8) {
        grid-area: actions;
    }

    .service-order-table .service-actions-cell::before {
        margin-bottom: 6px;
    }

    .history-action-grid {
        grid-template-columns: repeat(6, minmax(82px, 1fr));
        gap: 5px;
    }

    .history-action-grid .btn {
        min-height: 30px;
        padding: 4px 8px;
    }
}

@media (max-width: 767px) {
    .service-order-table {
        border-spacing: 0 9px;
    }

    .service-order-table tr {
        border-radius: 14px;
        padding: 10px 11px;
    }

    .service-order-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        text-align: left;
    }

    .service-order-table td::before {
        flex: none;
        font-size: 0.66rem;
        line-height: 1.15;
    }

    .service-order-table .service-actions-cell {
        display: block;
        padding-top: 8px;
    }

    .history-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .history-action-grid .btn {
        min-height: 32px;
        padding: 5px 8px;
    }

    .status-pill,
    .quote-pill {
        overflow-wrap: normal;
        white-space: nowrap;
        word-break: keep-all;
    }

    .support-page {
        min-height: auto;
        place-items: stretch;
    }

    .support-card {
        padding: 20px;
    }

    .support-contact {
        grid-template-columns: 1fr;
    }

    .support-whatsapp-button {
        width: 100%;
    }

    .ops-unit-header {
        align-items: flex-start;
    }

    .ops-unit-code {
        min-width: 82px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.66rem;
        letter-spacing: 0.02em;
    }
}

@media print {
    @page thermal {
        size: 80mm auto;
        margin: 4mm;
    }

    @page voucher {
        size: A4 landscape;
        margin: 10mm;
    }

    body.thermal-body {
        page: thermal;
        background: #fff;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    .thermal-ticket {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .thermal-logo-shell {
        background: transparent !important;
        border-radius: 0;
        padding: 0 3mm 1mm;
        margin-bottom: 2mm;
    }

    .thermal-logo-shell img,
    .voucher-logo-shell img {
        filter: grayscale(1) contrast(4) brightness(0);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .thermal-logo-print-name {
        display: block !important;
        margin: 0 0 3mm;
        color: #000;
        font-size: 13px;
        font-weight: 900;
        text-align: center;
        text-transform: uppercase;
    }

    .thermal-print-brand {
        margin: 0 auto 3mm;
    }

    .thermal-print-logo {
        width: 36mm !important;
        max-width: 36mm !important;
        height: auto !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.voucher-body {
        page: voucher;
        background: #fff;
        padding: 0;
    }

    .voucher-sheet {
        width: 100%;
        gap: 10px;
    }

    .voucher-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

.ranking-filter-panel .panel-header {
    align-items: flex-start;
}

.ranking-period-chip {
    align-items: center;
    background: #e8f6f2;
    border: 1px solid rgba(11, 109, 96, 0.12);
    border-radius: 14px;
    color: #0a5149;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 850;
    min-height: 38px;
    padding: 0 14px;
    white-space: nowrap;
}

.ranking-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-period-tabs a {
    align-items: center;
    background: #fff;
    border: 1px solid #cbe2dd;
    border-radius: 12px;
    color: #0a5149;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 850;
    min-height: 38px;
    padding: 0 14px;
}

.ranking-period-tabs a.active,
.ranking-period-tabs a:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary);
    color: #fff;
}

.ranking-custom-period {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(180px, 260px)) auto;
}

.ranking-custom-period .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 38px;
}

.ranking-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ranking-stats-grid .stat-card strong {
    font-size: 1.42rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.ranking-two-column {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-two-column > .panel,
.ranking-two-column > .ranking-subtable {
    min-width: 0;
}

.ranking-two-column.compact {
    align-items: start;
}

.ranking-bar-list {
    display: grid;
    gap: 12px;
}

.ranking-bar-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.35fr) minmax(120px, 1fr) minmax(70px, auto);
}

.ranking-bar-info {
    min-width: 0;
}

.ranking-bar-info strong {
    color: #092f31;
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ranking-bar-info span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 3px;
}

.ranking-bar-track {
    background: #e2f0ec;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.ranking-bar-track span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 6px;
}

.ranking-bar-value {
    min-width: 70px;
    text-align: right;
}

.ranking-bar-value strong {
    color: #092f31;
    display: block;
    line-height: 1;
}

.ranking-bar-value span {
    color: var(--muted);
    display: block;
    font-size: 0.74rem;
    margin-top: 3px;
}

.ranking-table-wrap {
    border: 1px solid #dbe9e6;
    border-radius: 16px;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
}

.ranking-table {
    margin-bottom: 0;
    min-width: 540px;
    width: 100%;
}

.ranking-table th {
    background: #f5fbf9;
    color: #375956;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ranking-table td {
    color: #173b3d;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.ranking-month-snapshot {
    align-items: end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.ranking-month-snapshot strong {
    color: #092f31;
    font-size: 1.2rem;
    line-height: 1;
}

.ranking-month-chart {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.ranking-month-item {
    align-items: center;
    display: grid;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.ranking-month-item > span {
    color: #375956;
    font-size: 0.82rem;
    font-weight: 850;
    min-height: 34px;
}

.ranking-month-track {
    align-items: end;
    background: #e8f3f0;
    border-radius: 14px;
    display: flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.ranking-month-track strong {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 999px 999px 6px 6px;
    display: block;
    min-height: 2px;
    width: 34px;
}

.ranking-month-item b {
    color: #092f31;
}

.ranking-search-box {
    max-width: 320px;
    position: relative;
    width: 100%;
}

.ranking-search-box i {
    color: #6a8884;
    left: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ranking-search-box .form-control {
    padding-left: 36px;
}

.ranking-demand-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-demand-card,
.ranking-highlight-card,
.ranking-week-summary article,
.ranking-subtable {
    background: #fbfdfc;
    border: 1px solid #dbe9e6;
    border-radius: 18px;
}

.ranking-demand-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.ranking-demand-head strong {
    color: #092f31;
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ranking-demand-head span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    margin-top: 4px;
}

.ranking-mini-bars {
    display: grid;
    gap: 10px;
}

.ranking-mini-bars div {
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ranking-mini-bars span {
    color: #375956;
    font-size: 0.84rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.ranking-mini-bars b {
    color: #092f31;
}

.ranking-mini-bars i {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    display: block;
    grid-column: 1 / -1;
    height: 7px;
    min-width: 6px;
}

.ranking-highlight-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-highlight-card {
    padding: 16px;
}

.ranking-highlight-card span,
.ranking-week-summary span {
    color: var(--muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ranking-highlight-card strong,
.ranking-week-summary strong {
    color: #092f31;
    display: block;
    font-size: 1.08rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ranking-highlight-card p {
    color: var(--muted);
    margin: 8px 0 0;
}

.ranking-distribution {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: 180px minmax(0, 1fr);
}

.ranking-donut {
    align-items: center;
    aspect-ratio: 1;
    background: conic-gradient(var(--distribution));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    position: relative;
}

.ranking-donut::after {
    background: #fbfdfc;
    border-radius: 50%;
    content: "";
    inset: 36px;
    position: absolute;
}

.ranking-donut span {
    color: #092f31;
    font-size: 1.35rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.ranking-legend {
    display: grid;
    gap: 9px;
}

.ranking-legend div {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 12px minmax(0, 1fr) auto;
}

.ranking-legend i {
    background: var(--legend-color);
    border-radius: 50%;
    display: block;
    height: 12px;
    width: 12px;
}

.ranking-legend span {
    color: #375956;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.ranking-legend strong {
    color: #092f31;
    font-size: 0.88rem;
}

.ranking-week-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-week-summary article {
    padding: 18px;
}

.ranking-subtable {
    overflow: hidden;
}

.ranking-subtable h4 {
    border-bottom: 1px solid #dbe9e6;
    color: #092f31;
    font-size: 1rem;
    font-weight: 850;
    margin: 0;
    padding: 15px 16px;
}

.ranking-subtable .ranking-table-wrap {
    border: 0;
    border-radius: 0;
}

.ranking-trend {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 5px;
    line-height: 1;
    min-height: 24px;
    padding: 0 9px;
    white-space: nowrap;
}

.ranking-trend.up {
    background: #e3f8ed;
    color: #0b7a43;
}

.ranking-trend.down {
    background: #fdeaea;
    color: #b42318;
}

.ranking-trend.flat {
    background: #eef4f2;
    color: #607b78;
}

.ranking-empty-state {
    align-items: center;
    color: #607b78;
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 180px;
    text-align: center;
}

.ranking-empty-state i {
    color: var(--primary);
    font-size: 1.8rem;
}

@media (max-width: 1199px) {
    .ranking-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .ranking-two-column,
    .ranking-two-column.compact,
    .ranking-distribution {
        grid-template-columns: 1fr;
    }

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

    .ranking-custom-period .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ranking-stats-grid,
    .ranking-demand-grid,
    .ranking-highlight-grid,
    .ranking-week-summary,
    .ranking-custom-period {
        grid-template-columns: 1fr;
    }

    .ranking-period-chip {
        justify-content: center;
        white-space: normal;
    }

    .ranking-bar-row {
        grid-template-columns: 1fr auto;
    }

    .ranking-bar-track {
        grid-column: 1 / -1;
        order: 3;
    }

    .ranking-bar-value {
        min-width: 58px;
    }

    .ranking-month-track {
        height: 110px;
    }
}

.ranking-control-panel {
    padding: 22px;
}

.ranking-control-panel .panel-header {
    margin-bottom: 16px;
}

.ranking-control-grid {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
}

.ranking-period-chip {
    gap: 8px;
    min-height: 34px;
}

.ranking-period-tabs {
    align-content: start;
    background: #f8fcfb;
    border: 1px solid #dcece8;
    border-radius: 18px;
    flex-wrap: nowrap;
    margin-bottom: 0;
    overflow-x: auto;
    padding: 10px;
}

.ranking-period-tabs a {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.82rem;
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.ranking-custom-period {
    align-items: end;
    background: #f8fcfb;
    border: 1px solid #dcece8;
    border-radius: 18px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    padding: 10px;
}

.ranking-custom-period .form-label {
    color: #244a4a;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.ranking-custom-period .form-control {
    border-color: #d3e5e0;
    border-radius: 12px;
    min-height: 38px;
}

.ranking-custom-period .btn {
    border-radius: 12px;
    min-height: 38px;
    min-width: 96px;
}

.ranking-overview {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2.2fr);
}

.ranking-main-card {
    background:
        linear-gradient(135deg, rgba(6, 47, 49, 0.98), rgba(11, 109, 96, 0.95)),
        #062f31;
    border-color: rgba(6, 47, 49, 0.1);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 164px;
}

.ranking-main-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ranking-main-card strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin: 12px 0 10px;
}

.ranking-main-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

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

.ranking-kpi-card {
    align-items: start;
    background: #fff;
    border: 1px solid #dbe9e6;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(8, 60, 59, 0.045);
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 130px;
    padding: 16px;
}

.ranking-kpi-card > i {
    align-items: center;
    background: #e9f6f2;
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    font-size: 1.1rem;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ranking-kpi-card span {
    color: #587673;
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.ranking-kpi-card strong {
    color: #092f31;
    display: block;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.ranking-kpi-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0 0;
}

.ranking-focus-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-focus-card {
    min-width: 0;
}

.ranking-focus-card .panel-header h3 {
    font-size: 1.22rem;
}

.ranking-leader-list {
    display: grid;
    gap: 4px;
}

.ranking-leader-row {
    align-items: center;
    border-bottom: 1px solid #edf4f2;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    min-height: 62px;
    padding: 8px 0;
}

.ranking-leader-row:last-child {
    border-bottom: 0;
}

.ranking-position {
    align-items: center;
    background: #eef8f5;
    border: 1px solid #d5e9e4;
    border-radius: 12px;
    color: #0a5149;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ranking-leader-copy {
    min-width: 0;
}

.ranking-leader-copy strong {
    color: #123638;
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ranking-leader-copy small {
    color: #66837f;
    display: block;
    font-size: 0.78rem;
    margin-top: 2px;
}

.ranking-leader-track {
    background: #edf5f2;
    border-radius: 999px;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.ranking-leader-track i {
    background: linear-gradient(90deg, #0b6d60, #18c39c);
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 8px;
}

.ranking-leader-value {
    text-align: right;
}

.ranking-leader-value strong {
    color: #092f31;
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

.ranking-leader-value span {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    margin-top: 5px;
}

.ranking-detail-toggle {
    border-top: 1px solid #e5f0ed;
    margin-top: 14px;
    padding-top: 12px;
}

.ranking-detail-toggle summary {
    color: #0a5149;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 850;
    list-style-position: outside;
}

.ranking-detail-toggle .ranking-table-wrap,
.ranking-detail-toggle .ranking-compare-grid {
    margin-top: 12px;
}

.ranking-table {
    min-width: 480px;
}

.ranking-model-table .ranking-table {
    min-width: 560px;
}

.ranking-table th {
    letter-spacing: 0;
    padding: 12px 14px;
}

.ranking-table td {
    padding: 12px 14px;
}

.ranking-month-list {
    display: grid;
    gap: 10px;
}

.ranking-month-row {
    align-items: center;
    background: #f8fcfb;
    border: 1px solid #e1eeeb;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(100px, 138px) minmax(0, 1fr) 44px auto;
    min-height: 48px;
    padding: 10px;
}

.ranking-month-row > span {
    color: #375956;
    font-size: 0.86rem;
    font-weight: 850;
}

.ranking-month-line {
    background: #e9f3f0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.ranking-month-line i {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 6px;
}

.ranking-month-row > strong {
    color: #092f31;
    text-align: right;
}

.ranking-distribution {
    grid-template-columns: 150px minmax(0, 1fr);
}

.ranking-donut::after {
    inset: 31px;
}

.ranking-highlight-card {
    border-radius: 16px;
}

.ranking-week-summary {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    margin-bottom: 14px;
}

.ranking-week-summary article {
    border-radius: 16px;
    min-width: 0;
    padding: 14px;
}

.ranking-week-summary span {
    letter-spacing: 0;
}

.ranking-week-summary strong {
    font-size: 1.16rem;
    margin-bottom: 9px;
}

.ranking-compare-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.ranking-trend {
    line-height: 1.15;
    max-width: 100%;
    padding-bottom: 5px;
    padding-top: 5px;
    white-space: normal;
}

body .ranking-table th {
    letter-spacing: 0;
}

#rankingModelEmpty.d-none {
    display: none !important;
}

.cloud-settings-card {
    background:
        linear-gradient(135deg, rgba(6, 47, 49, 0.96), rgba(11, 109, 96, 0.9)),
        #062f31;
    border: 1px solid rgba(34, 197, 161, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(6, 33, 35, 0.14);
    color: #fff;
    padding: 20px;
}

.cloud-settings-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cloud-settings-head .eyebrow,
.cloud-settings-card .form-label {
    color: #bde7df;
    letter-spacing: 0;
}

.cloud-settings-head h4 {
    color: #fff;
    font-size: 1.42rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.cloud-help-actions {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 18px;
}

.cloud-help {
    margin: 0;
}

.cloud-help[open] {
    flex-basis: 100%;
}

.cloud-help summary {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 850;
    gap: 9px;
    line-height: 1;
    list-style: none;
    min-height: 42px;
    padding: 0 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.cloud-help summary::-webkit-details-marker {
    display: none;
}

.cloud-help summary:hover,
.cloud-help[open] summary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.cloud-help-icon {
    align-items: center;
    background: #ecfffa;
    border-radius: 999px;
    color: #07584e;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 950;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.cloud-help-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    margin-top: 12px;
    padding: 16px;
}

.cloud-help-steps {
    counter-reset: cloud-step;
    display: grid;
    gap: 12px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.cloud-help-steps li {
    counter-increment: cloud-step;
    display: grid;
    gap: 3px;
    grid-template-columns: 28px minmax(0, 1fr);
}

.cloud-help-steps li::before {
    align-items: center;
    background: #ecfffa;
    border-radius: 999px;
    color: #07584e;
    content: counter(cloud-step);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    margin-top: 1px;
    width: 24px;
}

.cloud-help-steps strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.2;
}

.cloud-help-steps span {
    color: #c9eee7;
    font-size: 0.9rem;
    grid-column: 2;
    line-height: 1.35;
}

.cloud-help-note {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9f7f0;
    font-size: 0.9rem;
    font-weight: 750;
    margin: 14px 0 0;
    padding-top: 12px;
}

.cloud-billing-strip {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 5px solid #82e6c7;
    border-radius: 14px;
    display: grid;
    gap: 10px 18px;
    grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(220px, 1.4fr);
    margin-bottom: 18px;
    min-height: 68px;
    padding: 12px 16px;
}

.cloud-billing-strip div {
    display: grid;
    gap: 3px;
}

.cloud-billing-strip span {
    color: #bde7df;
    font-size: 0.8rem;
    font-weight: 850;
}

.cloud-billing-strip strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.12;
}

.cloud-billing-strip p {
    color: #e6fff9;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.25;
    margin: 0;
}

.cloud-billing-ok {
    border-left-color: #72e3b3;
}

.cloud-billing-warning {
    border-left-color: #ffca61;
}

.cloud-billing-danger {
    border-left-color: #ff7b7b;
}

.cloud-settings-card .form-control,
.cloud-settings-card .form-select {
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    min-height: 44px;
}

.cloud-settings-card [name="painel_nuvem_url"] {
    font-size: 0.95rem;
}

.cloud-path-input,
.cloud-settings-card [name="painel_nuvem_host"],
.cloud-settings-card [name="painel_nuvem_usuario_ssh"],
.cloud-settings-card [name="painel_nuvem_porta_ssh"] {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.cloud-mode-switch,
.cloud-backup-switch {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    gap: 10px;
    margin: 0;
    min-height: 44px;
    padding: 10px 14px 10px 46px;
}

.cloud-backup-switch {
    justify-content: flex-start;
    width: 100%;
}

.cloud-mode-switch .form-check-input,
.cloud-backup-switch .form-check-input {
    margin-left: -34px;
    margin-top: 0;
}

.cloud-mode-switch .form-check-label,
.cloud-backup-switch .form-check-label {
    color: #fff;
    font-weight: 850;
}

.cloud-summary-pill {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    min-height: 66px;
    padding: 10px 14px;
}

.cloud-summary-pill span {
    color: #bde7df;
    font-size: 0.82rem;
    font-weight: 850;
}

.cloud-summary-pill strong {
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
}

.cloud-header-link {
    align-items: center;
    background: #e7f6f2;
    border-radius: 999px;
    color: #07584e;
    display: inline-flex;
    font-weight: 850;
    min-height: 28px;
    padding: 0 10px;
}

.ranking-week-chart-card {
    background:
        linear-gradient(135deg, #082326, #0b3533),
        #082326;
    border-color: rgba(34, 197, 161, 0.22);
    box-shadow: 0 22px 44px rgba(6, 33, 35, 0.18);
    color: #fff;
    overflow: hidden;
    padding: 20px;
}

.ranking-chart-header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ranking-chart-header span {
    color: #9eddd2;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ranking-chart-header h3 {
    color: #fff;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 6px 0 0;
}

.ranking-chart-header p {
    color: #bddbd6;
    font-size: 0.9rem;
    margin: 8px 0 0;
}

.ranking-best-day {
    align-items: center;
    background: #ffb84d;
    border-radius: 10px;
    color: #062326;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 900;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
}

.ranking-week-chart {
    align-items: end;
    background: #071a21;
    border: 1px solid rgba(158, 221, 210, 0.08);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    height: 260px;
    padding: 32px 18px 16px;
}

.ranking-week-day {
    align-items: center;
    align-self: stretch;
    display: grid;
    gap: 6px;
    grid-template-rows: 26px 1fr auto auto;
    justify-items: center;
    min-width: 0;
}

.ranking-week-day span {
    color: #bfe9df;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.ranking-week-day i {
    align-self: end;
    background: linear-gradient(180deg, #3bb3f3, #228ee3);
    border-radius: 8px 8px 3px 3px;
    display: block;
    min-height: 8px;
    width: min(64px, 82%);
}

.ranking-week-day.best i {
    background: linear-gradient(180deg, #6ee7c1, #28c797);
}

.ranking-week-day.empty i {
    background: linear-gradient(180deg, #ffc35a, #ff9f2e);
}

.ranking-week-day strong {
    color: #dbeffd;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
}

.ranking-week-day small {
    color: #86aeb4;
    font-size: 0.72rem;
    line-height: 1;
}

@media (max-width: 1399px) {
    .ranking-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-kpi-card {
        min-height: 126px;
    }
}

@media (max-width: 1199px) {
    .ranking-overview,
    .ranking-control-grid,
    .ranking-focus-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .ranking-control-panel .panel-header {
        flex-direction: column;
    }

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

    .ranking-custom-period .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ranking-control-panel,
    .ranking-main-card,
    .ranking-kpi-card {
        border-radius: 18px;
    }

    .ranking-kpi-grid,
    .ranking-two-column,
    .ranking-demand-grid,
    .ranking-highlight-grid,
    .ranking-week-summary,
    .ranking-custom-period {
        grid-template-columns: 1fr;
    }

    .ranking-main-card {
        min-height: 132px;
    }

    .ranking-main-card strong {
        font-size: 2.45rem;
    }

    .ranking-kpi-card {
        min-height: auto;
        padding: 16px;
    }

    .ranking-leader-row {
        grid-template-columns: 38px minmax(0, 1fr) 52px;
    }

    .ranking-month-row {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .ranking-month-line {
        grid-column: 1 / -1;
        order: 3;
    }

    .ranking-month-row .ranking-trend {
        justify-self: start;
    }

    .ranking-distribution {
        justify-items: center;
    }

    .ranking-chart-header {
        flex-direction: column;
    }

    .cloud-settings-head,
    .cloud-summary-pill {
        align-items: flex-start;
        flex-direction: column;
    }

    .cloud-help summary {
        justify-content: center;
        width: 100%;
    }

    .cloud-help,
    .cloud-help-actions {
        width: 100%;
    }

    .cloud-help-steps {
        grid-template-columns: 1fr;
    }

    .cloud-billing-strip {
        grid-template-columns: 1fr;
    }

    .cloud-mode-switch,
    .cloud-backup-switch {
        width: 100%;
    }

    .cloud-summary-pill strong {
        text-align: left;
    }

    .ranking-best-day {
        align-self: flex-start;
    }

    .ranking-week-chart {
        gap: 7px;
        height: 224px;
        padding: 26px 10px 12px;
    }

    .ranking-week-day span {
        font-size: 0.68rem;
        white-space: normal;
    }

    .ranking-week-day i {
        width: min(38px, 82%);
    }
}
