/* Shared visual layer; existing Bootstrap layouts and status colours remain supported. */
:root { --dicop-ink:#183247; --dicop-accent:#157d8c; --dicop-bg:#f3f6f9; --dicop-line:#e1e8ee; }
body { font-family: "Segoe UI", system-ui, sans-serif; color:var(--dicop-ink); }
body.page-container-bg-solid, .page-container-bg-solid .page-content, .page-content { background:var(--dicop-bg); }
.page-head { background:transparent; }
.page-head .page-title h1, h3.page-title { color:var(--dicop-ink); font-weight:650; letter-spacing:-.6px; }
.page-title small { color:#687d8d; }
.page-header { box-shadow:0 2px 12px #1832470a; }
.page-header .page-header-top, .page-header.navbar, .page-header.navbar .page-top { background:#fff; }
.page-header .page-header-menu { background:#183247; }
.page-header .page-header-menu .hor-menu .navbar-nav > li > a { color:#e6f0f5; }
.page-header .page-logo img { max-width:180px; max-height:45px; object-fit:contain; }
.portlet.light, .portlet.light.bordered { border:1px solid var(--dicop-line) !important; border-radius:14px !important; box-shadow:0 5px 22px #18324706; padding:22px; }
.portlet > .portlet-title { border-bottom-color:var(--dicop-line); }
.portlet > .portlet-title > .caption { font-weight:600; }
.dashboard-stat { border-radius:12px !important; overflow:hidden; }
.form-control { border:1px solid #cbd7e0; border-radius:8px !important; box-shadow:none; min-height:40px; color:var(--dicop-ink); }
.form-control:focus { border-color:var(--dicop-accent); box-shadow:0 0 0 3px #157d8c20; }
.btn { border-radius:8px !important; padding:10px 18px; font-weight:600; transition:box-shadow .15s, background-color .15s; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline:3px solid #319faf; outline-offset:3px; }
.btn.grey-cascade { background:var(--dicop-accent); border-color:var(--dicop-accent); color:#fff; }
.btn.grey-cascade:hover { background:#106573; border-color:#106573; }
.btn[disabled] { opacity:.5; }
.table thead th { background:#f3f6f9; color:#4c6273; font-size:12px; font-weight:700; }
.table > tbody > tr > td { padding:13px 10px; vertical-align:middle; border-color:#edf1f5; }
.table-hover > tbody > tr:hover { background:#f4fafb; }
.alert { border-radius:9px !important; }
.page-footer { color:#687d8d; }
.logout-form { margin:0; padding:8px 0; }
.logout-button { display:inline-flex; align-items:center; gap:8px; background:#f0f5f8; color:#344e61; border:1px solid #dce5ec; border-radius:8px !important; padding:9px 15px; font:600 13px "Segoe UI",sans-serif; }
.logout-button:hover { background:#e1ecf2; }
.clock { width:210px; height:210px; padding:16px; margin:20px auto; border:5px solid #fff; background:#fff; box-shadow:0 8px 30px #18324714; }
.outer-clock-face { background:#fff; box-shadow:none; }
.inner-clock-face { background:#fff; }
.hand { background:var(--dicop-accent); }
.hand.second-hand { background:#e78563; }
#dni { text-align:center; letter-spacing:3px; height:64px; }
.login-page { box-sizing:border-box; margin:0; min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:32px 20px; background:linear-gradient(#10273740,#10273740),url('../images/bg-01.jpg') center / cover no-repeat; }
.login-page * { box-sizing:border-box; }
.login-card { width:100%; max-width:440px; padding:40px; background:#fff; border:1px solid #e1e8ee; border-radius:22px; box-shadow:0 20px 70px #1832470d; }
.login-logo { width:160px; max-height:65px; object-fit:contain; object-position:left; margin-bottom:32px; }
.eyebrow { font-size:11px; font-weight:750; letter-spacing:2px; color:#157d8c; margin:0 0 12px; }
.login-card h1 { font-size:32px; letter-spacing:-1px; margin:0 0 10px; }
.login-intro { font-size:15px; color:#667b8b; line-height:1.6; margin:0 0 28px; }
.login-card label { display:block; font-size:13px; font-weight:650; margin:18px 0 8px; }
.login-card input { width:100%; border:1px solid #cdd9e2; border-radius:9px; padding:14px; font:inherit; font-size:15px; background:#fbfcfd; color:#183247; }
.login-card input:focus { outline:3px solid #157d8c20; border-color:#157d8c; }
.login-card button { width:100%; margin-top:24px; display:flex; justify-content:space-between; border:0; border-radius:9px; padding:15px 18px; font:600 15px "Segoe UI",sans-serif; color:#fff; background:#157d8c; cursor:pointer; }
.login-card button:hover { background:#106573; }
.login-note { font-size:12px; line-height:1.7; color:#667b8b; margin:20px 0 28px; }
.login-card footer { border-top:1px solid #e6edf2; padding-top:20px; font-size:11px; color:#718493; }
.login-error { border-radius:8px; background:#fff1ef; color:#a63225; padding:13px; font-size:14px; line-height:1.5; }
@media (max-width:767px) {
    .login-card { padding:28px 24px; }
    .portlet.light, .portlet.light.bordered { padding:15px; }
    .page-content .container { max-width:100%; }
    .page-content .btn-lg { white-space:normal; max-width:100%; font-size:15px; }
    .page-title h1, h3.page-title { font-size:24px; }
    .table-responsive { border-radius:8px; }
}
@media (prefers-reduced-motion:reduce) { .btn { transition:none; } }

/* Page structure: footer follows long content and rests at the bottom on short pages. */
body.dicop-worker, body.dicop-admin { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
body.dicop-worker, body.dicop-admin {
    background:radial-gradient(ellipse at 12% 18%,#bce8e580,transparent 55%),radial-gradient(ellipse at 90% 80%,#bdd9f180,transparent 50%),#edf5f7;
}
.dicop-worker > .page-header { flex-shrink:0; }
.dicop-worker > .page-container { flex:1; display:flex; margin-bottom:0; }
.dicop-worker > .page-container > .page-content-wrapper { flex:1; display:flex; flex-direction:column; min-width:0; }
.dicop-worker .page-content-wrapper > .page-content { flex:1; background:transparent; min-height:0 !important; }
.dicop-admin > .page-container { flex:1; margin-bottom:0; }
.dicop-admin .page-content-wrapper > .page-content { background:transparent; }
body > .page-footer { flex-shrink:0; padding:20px 24px; background:#ffffffb8; border-top:1px solid #cbdfe5; color:#506c7b; text-align:center; }
body > .page-footer a { color:#126a79; font-weight:600; }
.dicop-admin .page-sidebar, .dicop-admin .page-sidebar-menu { background:#26344b; }
.dicop-admin .page-sidebar .page-sidebar-menu > li > a { display:flex; align-items:center; gap:12px; min-height:58px; padding:16px; text-align:left; font-weight:500; color:#e0e9f4; }
.dicop-admin .page-sidebar .page-sidebar-menu > li > a > .title { display:block; text-align:left; margin:0; flex:1; line-height:1.5; }
.dicop-admin .page-sidebar .page-sidebar-menu > li > a > i { color:#8dd5db; font-size:20px; width:22px; flex-shrink:0; margin:0; }
.dicop-admin .page-sidebar .page-sidebar-menu > li > a > .arrow:before { color:#b7cbdc; }
.dicop-admin .page-sidebar .page-sidebar-menu > li.active > a { background:#126875; color:#fff; }
.dicop-admin .page-sidebar .page-sidebar-menu > li.active > a > i { color:#fff; }
.dicop-admin .page-sidebar .page-sidebar-menu .sub-menu > li > a { color:#e0e9f4; padding:12px 16px 12px 48px; line-height:1.5; }
.dicop-admin .page-sidebar .page-sidebar-menu .sub-menu > li > a:hover { background:#354963; }
@media (min-width:992px) {
    .dicop-admin:not(.page-sidebar-closed) .page-sidebar,
    .dicop-admin:not(.page-sidebar-closed) .page-header.navbar .page-logo { width:240px; }
    .dicop-admin:not(.page-sidebar-closed) .page-content-wrapper .page-content { margin-left:240px; }
    .dicop-admin > .page-container { background:linear-gradient(to right,#26344b 240px,transparent 240px); }
    .dicop-admin.page-sidebar-closed > .page-container { background:linear-gradient(to right,#26344b 54px,transparent 54px); }
    .dicop-admin > .page-footer { padding-left:264px; }
    .dicop-admin.page-sidebar-closed > .page-footer { padding-left:78px; }
}
@media (max-width:991px) {
    .dicop-admin > .page-container { background:transparent; }
    .dicop-admin .page-sidebar { margin:0; }
}

.dicop-worker .clock, .dicop-worker .outer-clock-face, .dicop-worker .inner-clock-face { border-radius:50% !important; }
.dicop-worker .btn.grey-cascade { background:var(--dicop-accent) !important; border-color:var(--dicop-accent) !important; }
@media (max-width:767px) {
    .dicop-worker .page-header .page-header-top { height:84px; }
    .dicop-worker .page-header .page-header-top > .container { display:flex; align-items:center; height:84px; }
    .dicop-worker .page-header .page-header-top .page-logo { float:none; width:auto; height:auto; }
    .dicop-worker .page-header .page-header-top .top-menu { float:none; margin:0 0 0 auto; padding:0; }
    .dicop-worker .page-header .page-header-top .menu-toggler { float:none; margin:0 0 0 16px; }
}

@media (max-width:991px) {
    .dicop-admin .page-header.navbar .page-header-inner { display:flex; align-items:center; }
    .dicop-admin .page-header.navbar .page-logo { flex-shrink:0; }
    .dicop-admin .page-header.navbar .page-top { order:2; width:auto; margin-left:auto; clear:none; }
    .dicop-admin .page-header.navbar .top-menu .navbar-nav { margin:0 12px; }
    .dicop-admin .page-header.navbar .responsive-toggler { order:3; flex-shrink:0; margin:0 16px 0 4px; opacity:1; background:linear-gradient(#526d7f 0 2px,transparent 2px 7px,#526d7f 7px 9px,transparent 9px 14px,#526d7f 14px 16px) center / 18px 16px no-repeat; }
}
