:root {
    --rr-bg: #eef1f5;
    --rr-sidebar: #f7f8fa;
    --rr-card: #ffffff;
    --rr-text: #172033;
    --rr-muted: #7a8190;
    --rr-border: #e3e6eb;
    --rr-primary: #e84724;
    --rr-primary-soft: #fff0eb;
    --rr-blue: #6fa7d8;
    --rr-success: #17855b;
    --rr-success-bg: #eaf8f1;
    --rr-danger: #b54242;
    --rr-danger-bg: #fff0f0;
    --rr-warning: #a86f14;
    --rr-warning-bg: #fff7e5;
    --rr-radius: 22px;
    --rr-radius-small: 14px;
    --rr-shadow: 0 12px 40px rgba(27, 38, 59, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--rr-text);
    background: var(--rr-bg);
}

body {
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* APP */

.rr-app {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.rr-sidebar {
    width: 270px;
    background: var(--rr-sidebar);
    border-right: 1px solid var(--rr-border);
    padding: 28px 20px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.rr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px 28px;
}

.rr-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--rr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
}

.rr-brand-name {
    font-size: 17px;
    font-weight: 750;
}

.rr-brand-subtitle {
    font-size: 11px;
    color: var(--rr-muted);
    margin-top: 2px;
}

.rr-nav-section {
    margin: 26px 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #a2a8b3;
}

.rr-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    margin: 4px 0;
    border-radius: 14px;
    color: #596170;
    text-decoration: none;
    transition: 0.15s ease;
    font-size: 14px;
}

.rr-nav-link:hover {
    background: #ffffff;
    color: var(--rr-text);
}

.rr-nav-link.active {
    background: #ffffff;
    color: var(--rr-text);
    box-shadow: 0 5px 20px rgba(30, 40, 60, 0.06);
    font-weight: 650;
}

.rr-nav-link.active .rr-nav-icon {
    background: var(--rr-primary);
    color: white;
}

.rr-nav-link.disabled {
    opacity: 0.42;
    cursor: default;
}

.rr-nav-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #e9ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}


/* MAIN */

.rr-main {
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
}

.rr-topbar {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 36px;
}

.rr-page-title {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.rr-page-subtitle {
    color: var(--rr-muted);
    font-size: 13px;
    margin-top: 5px;
}

.rr-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-search-mini {
    width: 240px;
    height: 43px;
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #a1a6af;
    font-size: 13px;
}

.rr-notification {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rr-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rr-user-avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--rr-text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rr-user-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.rr-user-info span {
    color: var(--rr-muted);
    font-size: 10px;
    margin-top: 2px;
}

.rr-content {
    padding: 4px 36px 40px;
}


/* CARDS */

.rr-card {
    background: var(--rr-card);
    border: 1px solid rgba(220, 224, 230, 0.8);
    border-radius: var(--rr-radius);
    box-shadow: var(--rr-shadow);
}

.rr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 26px 18px;
}

.rr-card-title {
    font-size: 18px;
    font-weight: 730;
    margin: 0;
}

.rr-card-description {
    color: var(--rr-muted);
    font-size: 13px;
    margin-top: 5px;
}

.rr-card-body {
    padding: 0 26px 26px;
}


/* STAT CARDS */

.rr-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.rr-stat-card {
    padding: 23px;
}

.rr-stat-label {
    font-size: 12px;
    color: var(--rr-muted);
}

.rr-stat-value {
    margin-top: 9px;
    font-size: 31px;
    font-weight: 780;
}

.rr-stat-note {
    margin-top: 8px;
    font-size: 11px;
    color: var(--rr-muted);
}


/* BUTTONS */

.rr-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 650;
}

.rr-btn-primary {
    background: var(--rr-primary);
    color: white;
}

.rr-btn-primary:hover {
    opacity: 0.9;
}

.rr-btn-secondary {
    background: #eef0f3;
    color: var(--rr-text);
}

.rr-btn-secondary:hover {
    background: #e4e7eb;
}

.rr-btn-small {
    padding: 8px 11px;
    font-size: 12px;
}


/* FILTER */

.rr-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.rr-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rr-search-input {
    min-width: 250px;
}


/* FORM */

.rr-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.rr-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rr-form-group.full {
    grid-column: 1 / -1;
}

.rr-label {
    font-size: 12px;
    font-weight: 650;
}

.rr-required {
    color: var(--rr-primary);
}

.rr-input,
.rr-select,
.rr-textarea {
    width: 100%;
    border: 1px solid var(--rr-border);
    background: #fafbfc;
    color: var(--rr-text);
    border-radius: 12px;
    padding: 11px 13px;
    outline: none;
    font-size: 13px;
    transition: 0.15s;
}

.rr-input:focus,
.rr-select:focus,
.rr-textarea:focus {
    background: white;
    border-color: #adb6c4;
    box-shadow: 0 0 0 3px rgba(90, 110, 140, 0.08);
}

.rr-field-error {
    color: var(--rr-danger);
    font-size: 11px;
}

.rr-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rr-form-actions {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rr-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* TABLE */

.rr-table-wrap {
    overflow-x: auto;
}

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

.rr-table th {
    padding: 13px 12px;
    text-align: left;
    color: #969ca7;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rr-border);
}

.rr-table td {
    padding: 15px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: middle;
}

.rr-table tbody tr:last-child td {
    border-bottom: 0;
}

.rr-table tbody tr:hover {
    background: #fafbfc;
}

.rr-code {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 11px;
    font-weight: 700;
}

.rr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* BADGES */

.rr-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
}

.rr-badge-success {
    background: var(--rr-success-bg);
    color: var(--rr-success);
}

.rr-badge-inactive {
    background: #eef0f3;
    color: #797f89;
}


/* ALERT */

.rr-alert {
    padding: 14px 17px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.rr-alert-success {
    color: var(--rr-success);
    background: var(--rr-success-bg);
}

.rr-alert-error {
    color: var(--rr-danger);
    background: var(--rr-danger-bg);
}

.rr-alert ul {
    margin-bottom: 0;
}


/* EMPTY */

.rr-empty {
    padding: 40px;
    text-align: center;
    color: var(--rr-muted);
}


/* PAGINATION */

.rr-pagination {
    margin-top: 20px;
}


/* DASHBOARD */

.rr-dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.rr-welcome {
    padding: 30px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rr-welcome h2 {
    font-size: 31px;
    margin: 0;
    max-width: 520px;
}

.rr-welcome p {
    max-width: 620px;
    color: var(--rr-muted);
    line-height: 1.7;
    font-size: 14px;
}

.rr-quick-card {
    padding: 25px;
}

.rr-quick-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.rr-quick-item {
    padding: 14px 15px;
    border-radius: 13px;
    background: #f6f7f9;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .rr-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .rr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .rr-search-mini {
        display: none;
    }
}

@media (max-width: 760px) {

    .rr-sidebar {
        width: 76px;
        padding: 20px 10px;
    }

    .rr-brand-name,
    .rr-brand-subtitle,
    .rr-nav-section,
    .rr-nav-link:not(.active) {
   
    }
    

    .rr-brand > div:last-child,
    .rr-nav-link {
        font-size: 0;
    }

    .rr-nav-link {
        justify-content: center;
        padding: 10px;
    }

    .rr-nav-icon {
        font-size: 13px;
    }

    .rr-main {
        margin-left: 76px;
        width: calc(100% - 76px);
    }

    .rr-topbar {
        padding: 18px;
    }

    .rr-content {
        padding: 4px 18px 28px;
    }

    .rr-user-info {
        display: none;
    }

    .rr-form-grid,
    .rr-stat-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   AUTHENTICATION
   ========================================================= */

.rr-auth-body {
    margin: 0;
    min-height: 100vh;
    background: #eef1f5;
}

.rr-auth-wrapper {
    min-height: 100vh;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rr-auth-panel {
    width: min(1100px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 25px 70px
        rgba(27, 38, 59, 0.10);
}

.rr-auth-info {
    position: relative;
    padding: 50px;
    background:
        linear-gradient(
            145deg,
            #f7f8fa 0%,
            #eef1f4 100%
        );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rr-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-auth-message {
    margin-top: 100px;
    max-width: 470px;
}

.rr-auth-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #7b828e;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
}

.rr-auth-message h1 {
    margin: 22px 0 16px;
    font-size: 47px;
    line-height: 1.08;
    letter-spacing: -2px;
}

.rr-auth-message p {
    margin: 0;
    color: #7a8190;
    font-size: 15px;
    line-height: 1.8;
}

.rr-auth-footer {
    color: #979da8;
    font-size: 11px;
}

.rr-auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
}

.rr-auth-form-box {
    width: 100%;
    max-width: 380px;
}

.rr-auth-form-heading {
    margin-bottom: 35px;
}

.rr-auth-form-heading h2 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -1px;
}

.rr-auth-form-heading p {
    margin: 10px 0 0;
    color: #7a8190;
    line-height: 1.6;
    font-size: 13px;
}

.rr-auth-input {
    min-height: 48px;
}

.rr-auth-options {
    margin: 18px 0 24px;
    color: #737a87;
    font-size: 12px;
}

.rr-auth-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
}

.rr-password-card {
    width: min(540px, 100%);
    background: #ffffff;
    padding: 38px;
    border-radius: 28px;
    box-shadow:
        0 25px 70px
        rgba(27, 38, 59, 0.09);
}

.rr-password-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.rr-password-header h1 {
    margin: 0;
    font-size: 25px;
}

.rr-password-header p {
    margin: 7px 0 0;
    color: #7a8190;
    font-size: 13px;
    line-height: 1.5;
}


/* LOGIN RESPONSIVE */

@media (max-width: 850px) {

    .rr-auth-panel {
        grid-template-columns: 1fr;
    }

    .rr-auth-info {
        padding: 35px;
    }

    .rr-auth-message {
        margin-top: 45px;
    }

    .rr-auth-message h1 {
        font-size: 35px;
    }

    .rr-auth-footer {
        margin-top: 45px;
    }

    .rr-auth-form-side {
        padding: 45px 30px;
    }
}

@media (max-width: 520px) {

    .rr-auth-wrapper {
        padding: 15px;
    }

    .rr-auth-info {
        display: none;
    }

    .rr-auth-panel {
        min-height: auto;
    }

    .rr-auth-form-side {
        padding: 38px 25px;
    }

    .rr-password-card {
        padding: 27px 22px;
    }
}
/* =========================================================
   OFFICER ACCOUNTS
   ========================================================= */

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

.rr-role-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--rr-border);
    border-radius: 15px;
    background: #fafbfc;
    cursor: pointer;
    transition: 0.15s ease;
}

.rr-role-option:hover {
    background: #ffffff;
    border-color: #cfd4dc;
}

.rr-role-option input {
    margin-top: 4px;
}

.rr-role-option div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rr-role-option strong {
    font-size: 13px;
}

.rr-role-option span {
    color: var(--rr-muted);
    font-size: 11px;
    line-height: 1.45;
}

.rr-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rr-badge-role {
    background: #eef3f8;
    color: #496783;
}

.rr-table-muted {
    color: var(--rr-muted);
    font-size: 11px;
    margin-top: 4px;
}

.rr-alert-warning {
    background: var(--rr-warning-bg);
    color: var(--rr-warning);
}

@media (max-width: 1050px) {

    .rr-role-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .rr-role-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   STORAGE REQUESTS
   ========================================================= */

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

.rr-info-item {
    padding: 16px;
    background: #f7f8fa;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rr-info-item span {
    color: var(--rr-muted);
    font-size: 11px;
}

.rr-info-item strong {
    font-size: 13px;
}

.rr-field-help {
    color: var(--rr-muted);
    font-size: 10px;
    line-height: 1.5;
}

.rr-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.rr-submit-panel h3 {
    margin: 0;
    font-size: 17px;
}

.rr-submit-panel p {
    margin: 6px 0 0;
    color: var(--rr-muted);
    font-size: 12px;
    line-height: 1.5;
}

.rr-badge-warning {
    background: var(--rr-warning-bg);
    color: var(--rr-warning);
}

@media (max-width: 900px) {

    .rr-info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .rr-info-grid {
        grid-template-columns: 1fr;
    }

    .rr-submit-panel {
        flex-direction: column;
        align-items: stretch;
    }
}
/* =========================================================
   RECORD MOVEMENT TIMELINE
   ========================================================= */

.rr-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.rr-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    padding-bottom: 24px;
}

.rr-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: #e7e9ee;
}

.rr-timeline-marker {
    position: relative;
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px #e3e5e9;
    z-index: 1;
}

.rr-timeline-content {
    padding: 0 0 4px;
}

.rr-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rr-timeline-header strong {
    font-size: 14px;
}

.rr-timeline-header span {
    font-size: 11px;
    color: var(--rr-muted);
    white-space: nowrap;
}

.rr-timeline-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--rr-muted);
}

.rr-timeline-location {
    margin-top: 8px;
    padding: 9px 12px;
    background: #f7f8fa;
    border-radius: 9px;
    font-size: 12px;
}

.rr-timeline-location span {
    color: var(--rr-muted);
    margin-right: 5px;
}

.rr-timeline-remarks {
    margin-top: 8px;
    padding: 10px 12px;
    border-left: 3px solid currentColor;
    background: #fafafa;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 600px) {

    .rr-timeline-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Shared Laravel pagination */
nav[aria-label*="pagination" i] {
    margin-top: 20px;
    font-size: 13px;
}

/* Keep pagination arrows small */
nav[aria-label*="pagination" i] svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Hide the duplicate mobile Previous / Next controls */
nav[aria-label*="pagination" i] > div:first-child {
    display: none;
}

/* Results count and numbered links */
nav[aria-label*="pagination" i] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

nav[aria-label*="pagination" i] p {
    margin: 0;
    color: var(--rr-muted);
}

/* Container around page numbers */
nav[aria-label*="pagination" i] > div:last-child > div:last-child > span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Links, current page and disabled arrows */
nav[aria-label*="pagination" i] a,
nav[aria-label*="pagination" i] span[aria-current] > span,
nav[aria-label*="pagination" i] span[aria-disabled] > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--rr-border);
    border-radius: 9px;
    background: white;
    color: var(--rr-text);
    text-decoration: none;
}

nav[aria-label*="pagination" i] a:hover {
    background: var(--rr-primary-soft);
    border-color: var(--rr-primary);
}

nav[aria-label*="pagination" i] span[aria-current] > span {
    background: var(--rr-primary);
    border-color: var(--rr-primary);
    color: white;
}

nav[aria-label*="pagination" i] span[aria-disabled] > span {
    opacity: 0.45;
    cursor: default;
}