/* EasyPrintDz CRM - Safe UI Polish V4
   CSS only. No business logic. No POS/Finance data changes.
*/

:root{
    --ep-bg:#eef6ff;
    --ep-card:#ffffff;
    --ep-border:#cfe0f3;
    --ep-text:#07152e;
    --ep-muted:#5f6f86;
    --ep-primary:#2563eb;
    --ep-dark:#071126;
    --ep-green:#059669;
    --ep-orange:#f97316;
    --ep-red:#dc2626;
    --ep-radius:18px;
    --ep-shadow:0 14px 40px rgba(15,23,42,.08);
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--ep-bg) !important;
    color:var(--ep-text);
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

a, button, input, select, textarea{
    font-family:inherit;
}

.container,
.max-w-7xl,
.mx-auto{
    max-width:1180px;
}

.card,
.ep-card,
.bg-white,
[class*="rounded"]{
    border-color:var(--ep-border);
}

.bg-white{
    box-shadow:0 10px 28px rgba(15,23,42,.05);
}

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

th{
    color:#52637a;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.035em;
}

td, th{
    vertical-align:middle;
}

input,
select,
textarea{
    border-radius:14px !important;
    border:1px solid var(--ep-border) !important;
    min-height:42px;
    outline:none !important;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#93c5fd !important;
    box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}

button,
.btn,
a[class*="btn"],
.inline-flex{
    border-radius:13px;
}

button:hover,
.btn:hover,
a[class*="btn"]:hover{
    transform:translateY(-1px);
}

.alert,
[role="alert"]{
    border-radius:16px !important;
}

/* Better mobile table behavior */
.table-responsive,
.overflow-x-auto{
    -webkit-overflow-scrolling:touch;
}

/* Header/nav breathing room */
nav,
header{
    backdrop-filter:saturate(1.2);
}

/* POS / Sales pages readability */
.sale-code,
.license-key,
code,
pre{
    word-break:break-word;
}

/* Invoice print protection */
@media print{
    body{
        background:#fff !important;
    }

    .no-print,
    nav,
    header,
    button{
        display:none !important;
    }

    .bg-white{
        box-shadow:none !important;
    }
}

/* Mobile and tablet polish */
@media (max-width: 900px){
    body{
        font-size:14px;
    }

    .container,
    .max-w-7xl,
    .mx-auto{
        width:100% !important;
        max-width:100% !important;
        padding-left:14px !important;
        padding-right:14px !important;
    }

    h1{
        font-size:26px !important;
        line-height:1.15 !important;
    }

    h2{
        font-size:21px !important;
    }

    .grid{
        gap:14px !important;
    }

    table{
        font-size:13px;
    }

    th, td{
        padding:10px 8px !important;
    }

    .overflow-x-auto{
        border-radius:16px;
        border:1px solid var(--ep-border);
    }
}

@media (max-width: 640px){
    body{
        font-size:13px;
    }

    h1{
        font-size:23px !important;
    }

    h2{
        font-size:19px !important;
    }

    input,
    select,
    textarea,
    button,
    .btn,
    a[class*="btn"]{
        width:100%;
    }

    .flex{
        gap:10px;
    }

    .grid{
        grid-template-columns:1fr !important;
    }

    .bg-white,
    .card,
    .ep-card{
        border-radius:16px !important;
    }

    table{
        min-width:720px;
    }
}
