/* New Fashion Point & Garments — CSS
   Save this file as style.css in the same folder as index.html.
*/

*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f5f7;color:#20242a}
button,input,select{font:inherit}
button{cursor:pointer}

.app{display:flex;min-height:100vh}
.sidebar{
    width:245px;background:#1f2937;color:#fff;padding:18px;
    position:fixed;inset:0 auto 0 0;overflow:auto
}
.brand{
    font-size:20px;font-weight:800;text-align:center;margin-bottom:15px
}
.menu-title{
    font-size:11px;opacity:.7;margin:15px 0 7px;text-transform:uppercase
}
.menu-btn{
    width:100%;border:0;background:transparent;color:#fff;
    text-align:left;padding:10px 12px;border-radius:8px;margin:2px 0
}
.menu-btn:hover,.menu-btn.active{background:#374151}

.main{
    margin-left:245px;width:calc(100% - 245px);padding:18px
}
.topbar{
    background:#fff;border-radius:12px;padding:14px 16px;
    display:flex;justify-content:space-between;align-items:center;
    gap:12px;margin-bottom:16px;box-shadow:0 1px 6px #0001
}

.page{display:none}
.page.active{display:block}

.card{
    background:#fff;border-radius:12px;padding:16px;
    margin-bottom:16px;box-shadow:0 1px 6px #0001
}

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

.field label{
    display:block;font-size:12px;font-weight:700;margin-bottom:5px
}
.field input,.field select{
    width:100%;padding:9px;border:1px solid #d4d9df;
    border-radius:8px;background:#fff
}

.row-actions{
    display:flex;gap:8px;flex-wrap:wrap;margin-top:12px
}

.btn{
    border:0;border-radius:8px;padding:9px 13px;
    color:#fff;font-weight:700
}
.btn.blue{background:#2563eb}
.btn.green{background:#16a34a}
.btn.red{background:#dc2626}
.btn.yellow{background:#d97706}
.btn.gray{background:#6b7280}
.btn.small{padding:6px 8px;font-size:12px}

.table-wrap{overflow:auto}
.table{
    width:100%;border-collapse:collapse
}
.table th,.table td{
    border:1px solid #e1e5e9;padding:8px;
    text-align:left;font-size:13px
}
.table th{background:#eef2f7}

.right{text-align:right}

.totals{
    margin-left:auto;max-width:360px
}
.totals div{
    display:flex;justify-content:space-between;padding:4px 0
}
.grand{
    font-size:19px;font-weight:800;
    border-top:2px solid #222;margin-top:5px;padding-top:8px
}

.dashgrid{
    display:grid;grid-template-columns:repeat(4,1fr);gap:12px
}
.dash{
    background:#fff;padding:18px;border-radius:12px;
    box-shadow:0 1px 6px #0001
}
.dash strong{
    display:block;font-size:23px;margin-top:7px
}

.slip-card{display:none}
.slip{
    max-width:760px;margin:auto;border:1px solid #ddd;
    border-radius:10px;padding:18px;background:#fff
}
.slip h2,.slip h3{text-align:center;margin:3px 0}
.slip .line{
    border-top:1px dashed #777;margin:12px 0
}
.slip .srow{
    display:flex;justify-content:space-between;
    gap:12px;margin:5px 0
}

.login-screen{
    position:fixed;inset:0;background:#111827;
    display:flex;align-items:center;justify-content:center;
    z-index:1000
}
.login-box{
    background:#fff;width:min(380px,92vw);
    padding:25px;border-radius:14px
}
.login-box h2{margin-top:0}

.error{
    color:#dc2626;font-size:13px;min-height:18px
}
.muted{
    color:#6b7280;font-size:12px
}
.empty{
    text-align:center;color:#777;padding:18px
}
.profit-positive{
    color:#15803d;font-weight:700
}
.profit-negative{
    color:#b91c1c;font-weight:700
}

.hidden{display:none!important}

@media(max-width:900px){
    .sidebar{
        position:static;width:100%;height:auto
    }
    .app{display:block}
    .main{
        margin-left:0;width:100%
    }
    .grid,.grid-3,.dashgrid{
        grid-template-columns:1fr 1fr
    }
}

@media(max-width:600px){
    .grid,.grid-3,.dashgrid{
        grid-template-columns:1fr
    }
    .main{padding:10px}
    .sidebar{padding:10px}
}

body{
                    font-family:Arial;
                    padding:20px
                }

                .wrap{
                    max-width:720px;
                    margin:auto
                }

                .line{
                    border-top:
                    1px dashed #777;
                    margin:10px 0
                }

                .srow{
                    display:flex;
                    justify-content:space-between;
                    margin:5px 0
                }

                table{
                    width:100%;
                    border-collapse:collapse
                }

                th,td{
                    border:1px solid #999;
                    padding:7px;
                    text-align:left
                }

                .center{
                    text-align:center
                }

/* Extra responsive and accessibility-friendly touches */
img {
    max-width: 100%;
    height: auto;
}
input:focus, select:focus, button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .sidebar, .topbar, .row-actions, .btn, .login-screen {
        display: none !important;
    }
    .main {
        margin: 0;
        width: 100%;
        padding: 0;
    }
    .card, .dash, .slip {
        box-shadow: none;
    }
}
