*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f5f7fb;color:#14223a}.layout{display:flex;min-height:100vh}aside{width:245px;background:#11213b;color:white;display:flex;flex-direction:column;padding:27px 14px;flex-shrink:0}.brand{font-size:25px;font-weight:800;color:#8ce7dc;margin:3px 10px 38px}nav{display:grid;gap:9px}.nav{background:transparent;color:#d6e1f4;text-align:left;padding:15px;border:0;border-radius:10px;font-size:15px;cursor:pointer}.nav.active,.nav:hover{background:#2864e8;color:white}.store{margin-top:auto;border:1px solid #3b4d69;padding:15px;border-radius:12px;font-size:13px}main{min-width:0;flex:1;padding:28px 32px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}h1{font-size:29px;margin:0 0 5px}h2{font-size:20px}p{color:#63728a;margin:5px 0}.role{display:flex;align-items:center;gap:9px;white-space:nowrap}button{background:#2864e8;color:white;border:0;padding:11px 15px;border-radius:9px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.95)}button.secondary{background:white;color:#233652;border:1px solid #dce3ef}button.danger{background:#fce8e8;color:#ae2731}select,input{font:inherit;padding:10px;border:1px solid #d4ddec;border-radius:8px;background:white;color:#17243b;min-width:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.weeknav,.actions{display:flex;align-items:center;gap:8px}.weeknav strong{padding:0 10px}.scroll{overflow-x:auto;background:white;border:1px solid #dfe6f0;border-radius:14px;box-shadow:0 2px 12px #192f4a08}#calendar{min-width:900px}.cal-grid{display:grid;grid-template-columns:180px repeat(7,minmax(103px,1fr))}.cell{min-height:84px;padding:8px;border-right:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2}.cell:nth-child(8n){border-right:0}.cal-head{min-height:66px;background:#f8faff;text-align:center;font-weight:700;display:flex;flex-direction:column;justify-content:center}.cal-head small{font-weight:400;color:#73839a;margin-top:4px}.person{display:flex;flex-direction:column;justify-content:center;gap:5px;font-weight:700}.person small{font-weight:400;color:#718098}.shift{display:block;width:100%;text-align:left;padding:10px 8px;border-radius:9px;background:#dcecff;color:#143d73;margin-bottom:5px;font-size:12px;line-height:1.4}.shift small{display:block;color:inherit;font-size:11px}.shift:nth-child(2n){background:#e8e0ff;color:#543c88}.plus{background:transparent;border:1px dashed #cfd9e8;color:#65758e;width:100%;min-height:37px;font-size:18px;padding:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.stats>div,.panel{background:white;border:1px solid #e0e7f0;border-radius:13px;padding:20px}.stats strong{display:block;font-size:24px}.stats span{font-size:13px;color:#708098}.panel{max-width:950px}.panel form{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.employee-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.employee-card{padding:15px;border:1px solid #e0e7f0;border-radius:10px;display:flex;justify-content:space-between;align-items:center}.employee-card button{font-size:12px}#notice:not(:empty){padding:12px;background:#e7f7ee;color:#19633d;border-radius:9px;margin-bottom:16px}.hidden{display:none!important}footer{margin-top:25px;color:#728097;font-size:12px}dialog{border:0;border-radius:16px;box-shadow:0 20px 80px #15233b55;width:min(430px,calc(100vw - 28px));padding:25px}dialog::backdrop{background:#0d1d34a8}dialog form{display:grid;gap:15px}.dialoghead,.dialogactions{display:flex;justify-content:space-between;align-items:center}.dialoghead h2{margin:0}dialog label{display:grid;gap:7px;font-size:13px;font-weight:700}dialog label input,dialog label select{width:100%}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:10px}#myShifts{margin-top:20px}.myshift{padding:14px;border:1px solid #e0e7f0;border-radius:9px;margin:8px 0}small{color:#6d7d94}@media(max-width:750px){aside{width:70px;padding:15px 6px}.brand{font-size:0;margin:10px 5px 28px}.brand:first-letter{font-size:26px}.nav{font-size:0;padding:15px 10px}.nav:first-letter{font-size:19px}.store{display:none}main{padding:17px 12px}header{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr}.weeknav{flex-wrap:wrap}.actions{width:100%}.actions button{flex:1}}

/* Manager 1: blue; Manager 2: purple; Employee: green. All roles use shared demo data. */
body.manager-two { --primary:#7c3aed; --accent:#7c3aed; --blue:#7c3aed; }
body.manager-two aside { background:#27133e !important; }
body.manager-two button:not(.secondary):not(.plus):not(.shift):not(.danger):not(.nav) { background:#7c3aed; }
body.manager-two .nav.active { background:#7c3aed !important; }
body.manager-two .brand { color:#d8b4fe !important; }
body.employee-theme aside { background:#123b32 !important; }
body.employee-theme .nav.active { background:#16845c !important; }
body.employee-theme .brand { color:#a7f3d0 !important; }
body.employee-theme main header { border-bottom:3px solid #16a34a; }
/* SmartShift - Mobile Design */

@media screen and (max-width: 768px) {

    body {
        display: block !important;
        padding-bottom: 90px;
    }

    aside {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 65px !important;
        padding: 8px 12px !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    }

    aside .brand {
        display: none !important;
    }

    aside nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around;
        width: 100%;
        gap: 5px;
    }

    aside .nav {
        flex: 1;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 12px 6px !important;
        margin: 0 !important;
        border-radius: 12px;
    }

    main {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        padding: 16px !important;
    }

    main header {
        gap: 12px;
    }

    main header h1 {
        font-size: 25px;
    }

    .panel {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    input,
    select,
    textarea {
        max-width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    button {
        min-height: 44px;
    }

    dialog {
        max-width: 94vw !important;
        max-height: 85vh;
        overflow-y: auto;
    }
}
@media screen and (max-width: 768px) {

    aside .nav {
        width: auto !important;
        flex: 1 !important;
        font-size: 12px !important;
        color: white !important;
        flex-direction: column !important;
        gap: 5px;
        text-align: center;
        white-space: nowrap;
    }

    aside .nav span {
        display: inline !important;
        visibility: visible !important;
        font-size: 12px !important;
    }

    aside nav {
        display: flex !important;
        width: 100% !important;
        justify-content: space-evenly !important;
    }
}
/* SmartShift - Mobile Final Design */

@media screen and (max-width: 768px) {

    main::before {
        content: "✦ SmartShift";
        display: block;
        background: #112038;
        color: #86e5d8;
        font-size: 22px;
        font-weight: 800;
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    #employeesPage input {
        width: 100% !important;
        min-width: 0 !important;
    }

    #managerRequests .panel,
    #employeeRequests .panel {
        margin-bottom: 12px;
    }

    aside .nav {
        min-height: 48px;
        font-size: 13px !important;
    }

    main header h1 {
        font-size: 24px;
    }

    main header p {
        font-size: 13px;
    }

    body.manager-two main::before {
        background: #27133e;
        color: #d8b4fe;
    }

    body.employee-theme main::before {
        background: #123b32;
        color: #a7f3d0;
    }
}
/* Hide manager navigation for employees */
body.employee-theme aside nav {
    display: none !important;
}