﻿
/* =========================================
   GESTCOWEB - TEMA
   ========================================= */

:root {
    --gc-primary: #176B68;
    --gc-primary-hover: #125552;
    --gc-background: #F5F7F8;
    --gc-surface: #FFFFFF;
    --gc-text: #25343B;
    --gc-muted: #66777C;
    --gc-border: #DCE4E6;
}

/* =========================================
   BASE
   ========================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--gc-background);
    color: var(--gc-text);
}

body > form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.gc-card {
    background: var(--gc-surface);
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    padding: 24px;
}

.gc-btn-primary {
    background-color: var(--gc-primary);
    border: 1px solid var(--gc-primary);
    color: #FFFFFF;
    border-radius: 6px;
    padding: 10px 18px;
}

.gc-btn-primary:hover {
    background-color: var(--gc-primary-hover);
    border-color: var(--gc-primary-hover);
    color: #FFFFFF;
}

.gc-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--gc-border);
    border-radius: 6px;
    padding: 10px 12px;
}

.gc-input:focus {
    outline: none;
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px rgba(23, 107, 104, 0.12);
}

.gc-muted {
    color: var(--gc-muted);
}

.gc-title {
    font-weight: 600;
    color: var(--gc-text);
}

/* =========================================
   MASTER PAGE - BARRA SUPERIORE
   ========================================= */

.gc-topbar {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0 28px;
    box-sizing: border-box;
    background: var(--gc-surface);
    border-bottom: 1px solid var(--gc-border);
}

.gc-brand {
    color: var(--gc-primary);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.gc-brand:hover {
    color: var(--gc-primary-hover);
}

.gc-topbar-right {
    color: var(--gc-muted);
    font-size: 14px;
}

/* =========================================
   MASTER PAGE - LAYOUT
   ========================================= */

.gc-layout {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.gc-sidebar {
    flex: 0 0 240px;
    width: 240px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 24px 14px;
    box-sizing: border-box;
    background: var(--gc-surface);
    border-right: 1px solid var(--gc-border);
    overflow-x: hidden;
    overflow-y: auto;
}

.gc-menu-label {
    padding: 0 14px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gc-muted);
}

.gc-menu-label-account {
    margin-top: 28px;
}

.gc-menu-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--gc-text);
    font-size: 14px;
}

.gc-menu-link:hover {
    background: #EDF5F4;
    color: var(--gc-primary);
}

.gc-sidebar .gc-menu-link.active,
.gc-sidebar .gc-menu-link.active:hover {
    display: block;
    width: 100%;
    background-color: var(--gc-primary);
    color: #FFFFFF;
    border-radius: 7px;
    font-weight: 600;
}

.gc-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    height: 100%;
    padding: 24px 30px 14px;
    box-sizing: border-box;
    overflow: hidden;
}

.gc-main-content {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.gc-main-content .container,
.gc-main-content .container-fluid {
    max-width: 100%;
    box-sizing: border-box;
}

.gc-main-content .row {
    margin-left: 0;
    margin-right: 0;
}

.gc-main-content .gc-dash-panel,
.gc-main-content .gc-dash-stats,
.gc-main-content .gc-archive-grid {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.gc-footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 0;
    border-top: 1px solid var(--gc-border);
    color: var(--gc-muted);
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
}

/* =========================================
   DASHBOARD - INTESTAZIONE
   ========================================= */

.gc-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.gc-dash-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gc-primary);
    margin-bottom: 8px;
}

.gc-dash-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--gc-text);
    margin: 0 0 8px;
}

.gc-dash-subtitle {
    color: var(--gc-muted);
    font-size: 14px;
    margin: 0;
}

.gc-dash-status {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #FFFFFF;
    border: 1px solid var(--gc-border);
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--gc-muted);
}

.gc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gc-primary);
}

/* =========================================
   DASHBOARD - STATISTICHE
   ========================================= */

.gc-dash-stats {
    margin-bottom: 28px;
}

.gc-stat-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 23px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(27, 49, 54, .035);
}

.gc-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.gc-stat-label {
    color: var(--gc-muted);
    font-size: 13px;
    font-weight: 500;
}

.gc-stat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8F3F1;
    color: var(--gc-primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.gc-stat-icon-muted {
    background: #EDF0F2;
    color: #718087;
}

.gc-stat-value {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--gc-text);
    margin: 14px 0 7px;
    line-height: 1.1;
}

.gc-stat-description {
    font-size: 12px;
    color: var(--gc-muted);
}

.gc-stat-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--gc-primary);
}

.gc-stat-accent-muted {
    background: #AAB7BC;
}

/* =========================================
   DASHBOARD - PANNELLI
   ========================================= */

.gc-dash-panel {
    background: #FFFFFF;
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 3px 14px rgba(27, 49, 54, .025);
}

.gc-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.gc-panel-heading h2 {
    font-size: 17px;
    font-weight: 650;
    margin: 0 0 7px;
    color: var(--gc-text);
}

.gc-panel-heading p {
    font-size: 13px;
    color: var(--gc-muted);
    margin: 0;
}

.gc-panel-symbol {
    color: var(--gc-primary);
    font-size: 27px;
    line-height: 1;
}

.gc-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.gc-search-row .gc-input {
    flex: 1;
    min-width: 0;
}

.gc-panel-note {
    font-size: 12px;
    color: var(--gc-muted);
    margin: 14px 0 0;
}

/* =========================================
   DASHBOARD - ARCHIVI
   ========================================= */

.gc-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gc-archive-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #F8FAFA;
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    padding: 20px;
}

.gc-archive-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #E8F3F1;
    color: var(--gc-primary);
    font-weight: 700;
}

.gc-archive-icon-muted {
    background: #E9EDEF;
    color: #718087;
}

.gc-archive-content {
    min-width: 0;
}

.gc-archive-content h3 {
    font-size: 14px;
    font-weight: 650;
    margin: 0 0 9px;
}

.gc-archive-content p {
    font-size: 12px;
    color: var(--gc-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}

.gc-text-link {
    color: var(--gc-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.gc-text-link:hover {
    color: var(--gc-primary-hover);
}

.gc-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--gc-border);
    text-decoration: none;
    color: var(--gc-text);
    font-size: 13px;
}

.gc-quick-link:last-child {
    border-bottom: none;
}

.gc-quick-link:hover {
    color: var(--gc-primary);
}

.gc-dash-info {
    background: #EAF4F2;
    border: 1px solid #D5E9E5;
    border-radius: 12px;
    padding: 26px;
    color: #235A56;
}

.gc-info-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-primary);
    color: #FFFFFF;
    border-radius: 11px;
    font-weight: 700;
    margin-bottom: 20px;
}

.gc-dash-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gc-dash-info p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.gc-dash-info span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* =========================================
   LOGIN
   ========================================= */

.gc-login-body {
    margin: 0;
    min-height: 100vh;
    background: #F5F7F8;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #24383C;
}

.gc-login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.gc-login-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border: 1px solid #E4EAEB;
    border-radius: 16px;
    padding: 42px 38px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(25, 52, 55, 0.06);
}

.gc-login-brand {
    text-align: center;
    margin-bottom: 6px;
}

.gc-login-brand h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.gc-login-brand h1 span {
    color: #176B68;
}

.gc-login-brand p {
    margin: 9px 0 0;
    color: #819094;
    font-size: 13px;
}

.gc-login-heading {
    margin-bottom: 26px;
}

.gc-login-heading h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 650;
}

.gc-login-heading p {
    margin: 0;
    font-size: 13px;
    color: #819094;
    line-height: 1.5;
}

.gc-login-field {
    margin-bottom: 20px;
}

.gc-login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.gc-login-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #DDE5E6;
    border-radius: 8px;
    background: #FFFFFF;
    color: #24383C;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gc-login-input:focus {
    border-color: #176B68;
    box-shadow: 0 0 0 3px rgba(23, 107, 104, 0.10);
}

.gc-login-button {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #176B68;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s;
}

.gc-login-button:hover {
    background: #115552;
}

.gc-login-error {
    display: block;
    margin-bottom: 15px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #FFF0F0;
    color: #B42318;
    font-size: 13px;
}

.gc-login-help {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #EDF0F1;
    text-align: center;
    color: #819094;
    font-size: 12px;
    line-height: 1.6;
}

.gc-login-footer {
    margin-top: 25px;
    color: #9BA8AB;
    font-size: 12px;
    text-align: center;
}

.gc-login-logo-img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

/* =========================================
   ELENCO PRATICHE
   ========================================= */

/* L'area centrale non scorre nella pagina Pratiche */

.gc-main-content:has(.gc-pratiche-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gc-pratiche-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.gc-pratiche-page > .gc-dash-header {
    flex: 0 0 auto;
    margin-bottom: 14px;
}

.gc-pratiche-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    padding: 18px 24px;
    overflow: hidden;
}

.gc-pratiche-panel > .gc-panel-heading,
.gc-pratiche-panel > .gc-pratiche-tabs,
.gc-pratiche-panel > .gc-search-row,
.gc-pratiche-panel > .gc-pratiche-summary {
    flex: 0 0 auto;
}

.gc-pratiche-panel > .gc-panel-heading {
    margin-bottom: 14px;
}

.gc-pratiche-panel > .gc-pratiche-tabs {
    margin-bottom: 14px;
}

.gc-pratiche-summary {
    margin: 14px 0 10px;
    font-size: 13px;
    color: #819094;
}

.gc-pratiche-table-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.gc-pratiche-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.gc-pratiche-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 15px 14px;
    background: #F5F8F8;
    color: #536A6D;
    text-align: left;
    font-weight: 650;
    white-space: nowrap;
    border-bottom: 1px solid #E4EAEB;
}

.gc-pratiche-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #EDF1F1;
    color: #34494C;
    vertical-align: middle;
}

.gc-pratiche-table tr:hover td {
    background: #FAFCFC;
}

.gc-pratiche-table .gc-text-link {
    white-space: nowrap;
}

/* PAGINAZIONE */

.gc-pratiche-pager td {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 14px 10px;
    text-align: center;
    background: #FFFFFF;
    border-top: 1px solid #E4EAEB;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.025);
}

.gc-pratiche-pager a,
.gc-pratiche-pager span {
    display: inline-block;
    padding: 6px 11px;
    margin: 0 3px;
    border-radius: 6px;
    text-decoration: none;
}

.gc-pratiche-pager a {
    color: #176B68;
    background: #F1F7F6;
}

.gc-pratiche-pager span {
    background: #176B68;
    color: #FFFFFF;
}

/* SCHEDE ARCHIVIO */

.gc-pratiche-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E4EAEB;
}

.gc-pratiche-tab {
    display: inline-block;
    padding: 12px 18px;
    color: #819094;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.gc-pratiche-tab:hover {
    color: #176B68;
    text-decoration: none;
}

.gc-pratiche-tab.active {
    color: #176B68;
    border-bottom-color: #176B68;
}

/* =========================================
   DETTAGLIO PRATICA
   ========================================= */

.gc-main-content:has(.gc-detail-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gc-detail-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.gc-detail-page > .gc-dash-header {
    flex: 0 0 auto;
    margin-bottom: 14px;
}

.gc-detail-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    padding: 18px 24px;
    overflow: hidden;
}

.gc-detail-panel > .gc-panel-heading {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.gc-detail-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.gc-detail-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
    flex: 0 0 auto;
}

.gc-detail-grid > .gc-detail-item {
    grid-column: span 2;
    min-width: 0;
    padding: 10px 14px;
}

.gc-detail-grid > .gc-detail-item:nth-child(1),
.gc-detail-grid > .gc-detail-item:nth-child(2) {
    grid-column: span 3;
}

.gc-detail-item {
    padding: 20px;
    background: #F7FAFA;
    border: 1px solid #E6ECEC;
    border-radius: 10px;
    box-sizing: border-box;
}

.gc-detail-label {
    display: block;
    margin-bottom: 10px;
    color: #819094;
    font-size: 13px;
}

.gc-detail-value {
    display: block;
    color: #24383C;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gc-detail-amount {
    color: #176B68;
    font-size: 22px;
}

.gc-detail-grid .gc-detail-label {
    margin-bottom: 5px;
}

.gc-detail-grid .gc-detail-value {
    font-size: 15px;
}

.gc-detail-grid .gc-detail-amount {
    font-size: 20px;
}

.gc-detail-section {
    margin-top: 12px;
}

.gc-detail-section h3 {
    margin: 0 0 8px;
    color: var(--gc-primary);
    font-size: 16px;
    font-weight: 600;
}

.gc-detail-body > .gc-detail-section:not(.gc-detail-notes-section) {
    flex: 0 0 auto;
}

.gc-detail-body > .gc-detail-section:not(.gc-detail-notes-section) .gc-detail-item {
    padding: 10px 14px;
}

.gc-detail-notes-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 12px;
    overflow: hidden;
}

.gc-detail-notes-section h3 {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.gc-detail-notes-box {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px;
    overflow-x: hidden;
    overflow-y: auto;
}

.gc-detail-notes {
    display: block;
    color: #24383C;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gc-detail-navigation {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.gc-detail-nav-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 190px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--gc-primary);
    border-radius: 8px;
    color: var(--gc-primary);
    background: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

a.gc-detail-nav-button:hover {
    background: var(--gc-primary);
    color: #FFFFFF;
    text-decoration: none;
}

.gc-detail-nav-button.aspNetDisabled,
span.gc-detail-nav-button,
.gc-detail-nav-button:disabled {
    background: #F2F4F4;
    border-color: #D7DEDE;
    color: #A5AFAF;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}

.gc-detail-nav-button.aspNetDisabled:hover,
span.gc-detail-nav-button:hover {
    background: #F2F4F4;
    border-color: #D7DEDE;
    color: #A5AFAF;
}

.gc-detail-footer {
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #EDF1F1;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 991px) {
    .gc-archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gc-topbar {
        padding: 0 18px;
    }

    .gc-layout {
        flex-direction: column;
    }

    .gc-sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: 150px;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid var(--gc-border);
    }

    .gc-main {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 18px;
    }

    .gc-main-content {
        flex: 1 1 auto;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .gc-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gc-detail-grid > .gc-detail-item,
    .gc-detail-grid > .gc-detail-item:nth-child(1),
    .gc-detail-grid > .gc-detail-item:nth-child(2) {
        grid-column: span 1;
    }

    .gc-detail-grid > .gc-detail-item:last-child {
        grid-column: 1 / -1;
    }

    .gc-detail-navigation {
        gap: 8px;
    }

    .gc-detail-nav-button {
        min-width: 0;
        flex: 1;
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .gc-dash-title {
        font-size: 25px;
    }

    .gc-search-row {
        flex-direction: column;
    }

    .gc-dash-panel {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gc-login-card {
        padding: 32px 24px;
    }
}

@media (max-height: 700px) {
    .gc-detail-grid > .gc-detail-item {
        padding: 8px 12px;
    }

    .gc-detail-body > .gc-detail-section:not(.gc-detail-notes-section) {
        margin-top: 8px;
    }

    .gc-detail-notes-section {
        margin-top: 8px;
    }

    .gc-detail-navigation {
        margin-top: 8px;
    }
}


/* =========================================
   COMANDI STAMPA
   ========================================= */

.gc-print-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #F7FAFA;
    border: 1px solid var(--gc-border);
    border-radius: 9px;
}

.gc-print-toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gc-text);
    font-size: 13px;
    font-weight: 650;
}

.gc-print-toolbar-symbol {
    color: var(--gc-primary);
    font-size: 18px;
    line-height: 1;
}

.gc-print-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #C8DAD8;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--gc-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background-color .2s, border-color .2s, color .2s;
}

    .gc-print-button::before {
        content: "PDF";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 18px;
        margin-right: 9px;
        padding: 0 4px;
        border-radius: 3px;
        background: #E8F3F1;
        color: var(--gc-primary);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: .3px;
    }

    .gc-print-button:hover,
    .gc-print-button:focus-visible {
        background: #E8F3F1;
        border-color: var(--gc-primary);
        color: var(--gc-primary-hover);
        text-decoration: none;
    }

.gc-pratiche-panel > .gc-print-toolbar {
    flex: 0 0 auto;
}

.gc-pratiche-panel > .gc-pratiche-summary {
    margin-top: 10px;
}

.gc-detail-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.gc-detail-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 13px;
}

.gc-detail-print-button {
    margin-left: auto;
}

@media (max-width: 600px) {
    .gc-print-toolbar {
        align-items: flex-start;
        padding: 10px;
    }

    .gc-print-toolbar-actions {
        width: 100%;
    }

    .gc-print-button {
        white-space: normal;
    }
}

/* =========================================
   STAMPE E REPORT - PULSANTI SOTTO IL TITOLO
   ========================================= */

.gc-pratiche-printbar,
.gc-pratiche-print-bar,
.gc-print-toolbar,
.gc-print-bar,
.gc-stampe-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

    .gc-pratiche-printbar > *,
    .gc-pratiche-print-bar > *,
    .gc-print-toolbar > *,
    .gc-print-bar > *,
    .gc-stampe-bar > * {
        margin-left: 0;
    }

    .gc-pratiche-printbar .gc-print-actions,
    .gc-pratiche-print-bar .gc-print-actions,
    .gc-print-toolbar .gc-print-actions,
    .gc-print-bar .gc-print-actions,
    .gc-stampe-bar .gc-print-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        margin-left: 0;
    }

/* =========================================
   DETTAGLIO PRATICA - STAMPA A SINISTRA
   ========================================= */

.gc-detail-navigation {
    position: relative;
    justify-content: center;
}

.gc-detail-navigation-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gc-detail-print-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .gc-detail-navigation {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .gc-detail-print-button {
        position: static;
        transform: none;
    }

    .gc-detail-navigation-center {
        width: 100%;
        justify-content: center;
    }
}