/* =====================================================
   RANDRUP INTRA — REDESIGN STYLESHEET
   Font: DM Sans (Google Fonts)
===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: #F7F7F5;
    color: #1A1A18;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
.navbar {
    background: #fff !important;
    border-bottom: 1px solid #E8E8E4;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: 56px;
}

.navbar > .container-fluid {
    height: 56px;
    padding: 0 24px;
    gap: 4px;
    align-items: center;
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    padding: 0 !important;
    text-decoration: none;
}

.nav-logo-mark {
    width: 30px; height: 30px;
    background: #1A1A18;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}

.nav-logo-mark img {
    width: 30px !important; height: 30px !important;
    border-radius: 8px !important; object-fit: cover;
    border: none !important; box-shadow: none !important; margin: 0 !important;
}

.brand-name {
    font-size: 14px; font-weight: 600;
    color: #1A1A18; letter-spacing: -0.3px;
}

.navbar-nav .nav-item .nav-link,
.navbar-nav .nav-link {
    font-size: 13.5px !important; color: #6B6B65 !important;
    padding: 6px 12px !important; border-radius: 7px !important;
    font-weight: 500 !important; white-space: nowrap; line-height: 1.4;
    transition: background 0.13s, color 0.13s !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active-nav {
    background: #F0F0EC !important; color: #1A1A18 !important; transform: none !important;
}

.nav-link.frokost-link { color: #1A6DD4 !important; font-weight: 600 !important; }

/* Dropdown */
.dropdown-menu {
    background: #fff !important; border: 1px solid #E8E8E4 !important;
    border-radius: 12px !important; padding: 6px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.09) !important;
    min-width: 210px !important; margin-top: 8px !important;
}

.dropdown-header {
    font-size: 10px !important; font-weight: 600 !important;
    letter-spacing: 0.8px !important; text-transform: uppercase !important;
    color: #B0B0A8 !important; padding: 8px 10px 4px !important;
}

.dropdown-item {
    font-size: 13px !important; color: #3A3A36 !important;
    border-radius: 7px !important; padding: 8px 10px !important;
    font-weight: 500 !important; transition: background 0.1s !important;
    display: flex; align-items: center; gap: 10px;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: #F7F7F5 !important; color: #1A1A18 !important; transform: none !important;
}
.dropdown-item .dd-icon { font-size: 14px; flex-shrink: 0; }
.dropdown-divider { border-color: #F0F0EC !important; margin: 4px 2px !important; opacity: 1 !important; }

/* Profile / logout */
.nav-profile-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 5px; border-radius: 8px;
    border: 1px solid #E8E8E4; background: #fff;
    text-decoration: none; transition: background 0.13s; color: #1A1A18;
}
.nav-profile-pill:hover { background: #F7F7F5; color: #1A1A18; }

.nav-avatar {
    width: 28px; height: 28px; border-radius: 7px;
    background: #1A1A18; color: #fff; font-size: 11px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.nav-avatar img {
    width: 28px !important; height: 28px !important; border-radius: 7px !important;
    object-fit: cover; border: none !important; box-shadow: none !important;
}

.nav-profile-name { font-size: 13px; font-weight: 500; color: #1A1A18; }

.btn-logout {
    width: 36px !important; height: 36px !important;
    border-radius: 8px !important; background: #FEEAEA !important;
    border: none !important; color: #C43030 !important; font-size: 15px;
    cursor: pointer; display: flex !important; align-items: center; justify-content: center;
    transition: background 0.13s !important; padding: 0 !important; text-decoration: none; flex-shrink: 0;
}
.btn-logout:hover { background: #FDD5D5 !important; color: #A02020 !important; transform: none !important; }

.navbar-toggler {
    border: 1px solid #E8E8E4 !important; border-radius: 8px !important;
    padding: 6px 10px !important; background: transparent !important; box-shadow: none !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A1A18' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-notif-badge {
    font-size: 10.5px; font-weight: 600; border-radius: 20px;
    padding: 1px 7px; min-width: 18px; text-align: center; line-height: 1.6;
}
.nav-notif-badge.nbi { background: #EFF6FF; color: #1A6DD4; }
.nav-notif-badge.nbd { background: #FEEAEA; color: #C43030; }

/* ─── PAGE CONTAINERS ─── */
.page-body       { max-width: 900px;  margin: 0 auto; padding: 28px 24px 80px; }
.page-body-wide  { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }

/* ─── ALERT STRIPS ─── */
.alert-strip {
    border-radius: 10px; padding: 11px 16px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; font-size: 13.5px; gap: 12px;
    border-width: 1px; border-style: solid;
}
.as-yellow { background: #FFFBEB; border-color: #EFD88A; }
.as-blue   { background: #EFF6FF; border-color: #BDD3F8; }
.as-green  { background: #EDFBF4; border-color: #A2DBBE; }
.as-red    { background: #FFF0F0; border-color: #F5C0C0; }

.as-left { display: flex; align-items: center; gap: 10px; color: #3A3A36; font-weight: 500; }

.alert-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ad-y { background: #C9970A; }
.ad-b { background: #1A6DD4; }
.ad-g { background: #1E9B5A; }
.ad-r { background: #C43030; }

.as-cta {
    font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 6px;
    border: none; cursor: pointer; white-space: nowrap; text-decoration: none; flex-shrink: 0;
    font-family: 'DM Sans', sans-serif; display: inline-block;
}
.cta-y { background: #EFD88A; color: #6B4C00; }
.cta-b { background: #BDD3F8; color: #0E3985; }
.cta-g { background: #A2DBBE; color: #0B4227; }
.cta-r { background: #F5C0C0; color: #8B1A1A; }

/* ─── PUNCH CARD ─── */
.punch-card {
    background: #1A1A18; border-radius: 14px; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; gap: 16px;
}
.punch-label {
    font-size: 10px; font-weight: 600; letter-spacing: 0.9px;
    text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 5px;
}
.punch-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 3px; letter-spacing: -0.3px; }
.punch-time  { font-size: 13px; color: rgba(255,255,255,0.5); }
.punch-btn {
    padding: 11px 24px; border-radius: 10px; border: none;
    font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
    font-family: 'DM Sans', sans-serif; transition: opacity 0.15s; flex-shrink: 0;
}
.punch-btn:hover { opacity: 0.88; }
.pb-in   { background: #27AE60; color: #fff; }
.pb-out  { background: #E74C3C; color: #fff; }
.pb-done { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); cursor: default; }

/* ─── STRIP CARD ─── */
.strip-card {
    background: #fff; border: 1px solid #E8E8E4; border-radius: 12px;
    padding: 14px 18px; display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 10px; gap: 12px;
}
.strip-label { font-size: 10px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #9B9B94; margin-bottom: 3px; }
.strip-value { font-size: 15px; font-weight: 600; color: #1A1A18; }
.strip-sub   { font-size: 12.5px; color: #6B6B65; margin-top: 1px; }

/* ─── STAT CARDS ─── */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 28px; }
.stat-card {
    background: #fff; border: 1px solid #E8E8E4; border-radius: 12px;
    padding: 16px 18px; text-decoration: none; display: block;
    transition: border-color 0.15s; color: inherit;
}
.stat-card:hover { border-color: #C0C0BA; color: inherit; }
.stat-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #9B9B94; margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 600; color: #1A1A18; letter-spacing: -0.8px; line-height: 1; }
.stat-sub   { font-size: 12px; color: #9B9B94; margin-top: 5px; }

/* ─── SECTION HEADER ─── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title  { font-size: 14px; font-weight: 600; color: #1A1A18; letter-spacing: -0.2px; }
.section-link   { font-size: 13px; color: #1A6DD4; font-weight: 500; text-decoration: none; padding: 4px 10px; border-radius: 6px; transition: background 0.12s; }
.section-link:hover { background: #EFF6FF; color: #1A6DD4; }

/* ─── FILTER PILLS ─── */
.filter-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.fpill {
    font-size: 12.5px; font-weight: 500; padding: 5px 13px; border-radius: 20px;
    border: 1px solid #E8E8E4; background: #fff; color: #6B6B65; cursor: pointer;
    transition: all 0.12s; text-decoration: none; display: inline-block;
}
.fpill:hover { border-color: #C0C0BA; color: #1A1A18; }
.fp-alle    { background: #1A1A18; border-color: #1A1A18; color: #fff; }
.fp-randrup { background: #FEEAEA; border-color: #F5C0C0; color: #8B1A1A; }
.fp-kro     { background: #EDFBF4; border-color: #A8DFC0; color: #145C32; }
.fp-frokost { background: #EFF6FF; border-color: #BDD3F8; color: #0F3D8C; }

/* ─── EVENT LIST ─── */
.event-list { background: #fff; border: 1px solid #E8E8E4; border-radius: 14px; overflow: hidden; }
.event-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    border-bottom: 1px solid #F2F2EE; text-decoration: none; transition: background 0.12s; color: inherit;
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: #FBFBF9; }

.event-date-block {
    width: 44px; flex-shrink: 0; text-align: center;
    background: #F7F7F5; border: 1px solid #EDEDE8; border-radius: 9px; padding: 7px 4px;
}
.event-date-m { font-size: 9.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #9B9B94; display: block; }
.event-date-d { font-size: 19px; font-weight: 600; color: #1A1A18; display: block; line-height: 1.1; letter-spacing: -0.5px; }
.event-info   { flex: 1; min-width: 0; }
.event-title  { font-size: 13.5px; font-weight: 600; color: #1A1A18; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-meta   { font-size: 12.5px; color: #9B9B94; display: flex; align-items: center; gap: 6px; }
.cdot  { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cdot-r { background: #E24B4A; } .cdot-k { background: #1E9B5A; } .cdot-f { background: #1A6DD4; }
.event-guests { font-size: 13px; font-weight: 500; color: #6B6B65; flex-shrink: 0; text-align: right; min-width: 52px; }
.etag         { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; flex-shrink: 0; }
.etag-r { background: #FEEAEA; color: #A32D2D; } .etag-k { background: #EDFBF4; color: #145C32; } .etag-f { background: #EFF6FF; color: #0F3D8C; }
.event-chev   { color: #D0D0CA; font-size: 16px; flex-shrink: 0; }

/* ─── CONTENT CARD ─── */
.content-card { background: #fff; border: 1px solid #E8E8E4; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.content-card-header { padding: 14px 18px; border-bottom: 1px solid #F0F0EC; display: flex; align-items: center; justify-content: space-between; }
.content-card-body { padding: 18px; }

/* ─── TABLE ─── */
.ri-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ri-table th { font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #9B9B94; padding: 10px 12px; border-bottom: 1px solid #F0F0EC; text-align: left; }
.ri-table td { padding: 12px 12px; border-bottom: 1px solid #F7F7F5; color: #1A1A18; }
.ri-table tr:last-child td { border-bottom: none; }
.ri-table tr:hover td { background: #FBFBF9; }

/* ─── FORMS ─── */
.ri-label   { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #9B9B94; display: block; margin-bottom: 5px; }
.ri-input   { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #E8E8E4; background: #fff; font-size: 13.5px; font-family: 'DM Sans', sans-serif; color: #1A1A18; transition: border-color 0.13s; outline: none; }
.ri-input:focus { border-color: #1A1A18; }
.ri-input::placeholder { color: #B0B0A8; }
textarea.ri-input { resize: vertical; min-height: 80px; }
select.ri-input { cursor: pointer; }
.ri-form-group { margin-bottom: 16px; }

/* ─── BUTTONS ─── */
.btn-primary-dark {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
    padding: 9px 18px; border-radius: 9px; background: #1A1A18; color: #fff;
    border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: opacity 0.15s; text-decoration: none;
}
.btn-primary-dark:hover { opacity: 0.85; color: #fff; }

.btn-secondary-outline {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500;
    padding: 8px 16px; border-radius: 9px; background: #fff; color: #3A3A36;
    border: 1px solid #E8E8E4; cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: border-color 0.13s, background 0.13s; text-decoration: none;
}
.btn-secondary-outline:hover { border-color: #C0C0BA; background: #F7F7F5; color: #1A1A18; }

.btn-danger-soft {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    padding: 7px 14px; border-radius: 8px; background: #FEEAEA; color: #A32D2D;
    border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.13s; text-decoration: none;
}
.btn-danger-soft:hover { background: #FDD5D5; color: #8B1A1A; }

.btn-success-soft {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    padding: 7px 14px; border-radius: 8px; background: #EDFBF4; color: #145C32;
    border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.13s; text-decoration: none;
}
.btn-success-soft:hover { background: #D3F5E6; color: #0B3D20; }

/* ─── TAGS ─── */
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; display: inline-block; }
.tag-randrup   { background: #FEEAEA; color: #A32D2D; }
.tag-morkenborg { background: #EDFBF4; color: #145C32; }
.tag-frokost   { background: #EFF6FF; color: #0F3D8C; }
.tag-success   { background: #EDFBF4; color: #145C32; }
.tag-warning   { background: #FFFBEB; color: #6B4C00; }
.tag-danger    { background: #FEEAEA; color: #A32D2D; }
.tag-neutral   { background: #F0F0EC; color: #3A3A36; }
.tag-info      { background: #EFF6FF; color: #0F3D8C; }

.status-dot     { height: 8px; width: 8px; border-radius: 50%; display: inline-block; }
.dot-tilbud     { background: #D4A000; }
.dot-booket     { background: #1E9B5A; }
.dot-faktureret { background: #1A6DD4; }
.dot-aflyst     { background: #C43030; }

.shift-tag { font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 7px; background: #F0F0EC; color: #3A3A36; display: inline-block; }

.company-randrup      { border-left: 3px solid #E24B4A; }
.company-morkenborg   { border-left: 3px solid #1E9B5A; }
.company-firmafrokost { border-left: 3px solid #1A6DD4; }

/* ─── EMPTY STATE ─── */
.empty-state { padding: 48px 24px; text-align: center; color: #9B9B94; }
.empty-icon  { font-size: 28px; margin-bottom: 8px; opacity: 0.4; }
.empty-text  { font-size: 14px; }

/* ─── KITCHEN / PRINT ─── */
.day-header {
    background: #1A1A18; color: #fff; padding: 12px 16px; margin-top: 32px;
    font-size: 1rem; font-weight: 600; border-radius: 10px 10px 0 0;
    display: flex; justify-content: space-between;
}
.job-card { border: 1px solid #E8E8E4; border-top: none; padding: 20px; background: #fff; page-break-inside: avoid; }
.company-badge { display: inline-block; padding: 3px 10px; border-radius: 5px; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.meta-info { font-size: 1rem; font-weight: 600; margin-bottom: 10px; border-bottom: 1px solid #E8E8E4; padding-bottom: 10px; }
.kitchen-notes { font-size: 0.9rem; white-space: pre-wrap; font-family: 'Courier New', monospace; background: #F7F7F5; padding: 14px; border-radius: 8px; border: 1px solid #E8E8E4; }

/* ─── CALENDAR ─── */
#calendar { max-width: 100%; background: #fff; padding: 20px; border-radius: 14px; border: 1px solid #E8E8E4; min-height: 80vh; }

/* ─── LOGIN ─── */
.login-wrap  { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #F7F7F5; }
.login-card  { max-width: 400px; width: 100%; padding: 40px; border-radius: 18px; background: #fff; border: 1px solid #E8E8E4; }
.login-logo  { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; margin-bottom: 20px; }

/* ─── BOOTSTRAP OVERRIDES ─── */
.alert { border-radius: 10px !important; border: 1px solid !important; font-size: 13.5px; }
.alert-success { background: #EDFBF4 !important; border-color: #A2DBBE !important; color: #145C32 !important; }
.alert-danger  { background: #FFF0F0 !important; border-color: #F5C0C0 !important; color: #8B1A1A !important; }
.alert-warning { background: #FFFBEB !important; border-color: #EFD88A !important; color: #6B4C00 !important; }
.alert-info    { background: #EFF6FF !important; border-color: #BDD3F8 !important; color: #0F3D8C !important; }
.badge         { font-weight: 600 !important; }
.form-control, .form-select { border-radius: 8px !important; border-color: #E8E8E4 !important; font-family: 'DM Sans', sans-serif !important; font-size: 13.5px !important; }
.form-control:focus, .form-select:focus { border-color: #1A1A18 !important; box-shadow: none !important; }
.btn { font-family: 'DM Sans', sans-serif !important; border-radius: 8px !important; font-weight: 500 !important; }
.btn-sm { font-size: 12px !important; padding: 5px 12px !important; }
.card { border-radius: 14px !important; border-color: #E8E8E4 !important; box-shadow: none !important; }
.list-group-item { border-color: #F2F2EE !important; }
.table { font-size: 13.5px; }
.table thead th { font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #9B9B94; border-bottom-color: #E8E8E4 !important; }

/* ─── UTILITIES ─── */
.opacity-dim { opacity: 0.45; filter: grayscale(70%); }
.alert-icon  { font-size: 1.1em; margin-left: 4px; cursor: help; }
.text-muted  { color: #9B9B94 !important; }

/* ─── PRINT ─── */
@media print {
    .navbar, .no-print { display: none !important; }
    body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .day-header { background: #eee !important; color: #000 !important; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .page-body, .page-body-wide { padding: 18px 16px 64px; }
    .stat-row { grid-template-columns: repeat(2,1fr); }
    .event-guests, .etag { display: none; }
    .navbar > .container-fluid { padding: 0 16px; }
}

@media (max-width: 480px) {
    .punch-card { flex-direction: column; align-items: flex-start; }
    .punch-btn  { width: 100%; text-align: center; justify-content: center; display: flex; }
}
