/* ==========================================================================
   Swhescrow — modern.css
   Customer-facing design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / typography
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background-color: #dde5ee;
}

.fa, .fas, .far, .fab,
[class^="fa-"], [class*=" fa-"] {
    font-family: FontAwesome;
}

/* --------------------------------------------------------------------------
   Login page
   -------------------------------------------------------------------------- */
.sh-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0b1437 0%, #1e3a8a 100%);
}

.sh-welcome-inner h1 {
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.sh-welcome-inner p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 15px;
}

.sh-login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 50px rgba(11, 20, 55, 0.25);
}

.sh-login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sh-login-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 10px;
}

.sh-login-logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #0b1437;
    letter-spacing: -0.02em;
}

.sh-login-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0b1437;
}

.sh-login-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

.sh-login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sh-login-card .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sh-login-card .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.sh-login-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.sh-login-btn:hover {
    background: #1d4ed8;
}

.sh-login-btn:active {
    transform: translateY(1px);
}

.sh-login-footer {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 20px;
}

.sh-login-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.sh-login-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.sh-login-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.sh-login-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.sh-login-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* --------------------------------------------------------------------------
   Dashboard — welcome banner
   -------------------------------------------------------------------------- */
.sh-welcome {
    background: linear-gradient(135deg, #0b1437 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(11, 20, 55, 0.15);
}

.sh-welcome-inner h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sh-welcome-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.sh-welcome-user {
    color: #93c5fd;
}

/* --------------------------------------------------------------------------
   Dashboard — cards
   -------------------------------------------------------------------------- */
.dt-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.dt-card__body {
    padding: 24px;
}

.dt-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.bg-primary {
    background: linear-gradient(135deg, #0b1437 0%, #1e3a8a 100%) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.display-4 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Dashboard — quick action tiles
   -------------------------------------------------------------------------- */
.sh-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.sh-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: #0b1437;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sh-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    color: #0b1437;
}

.sh-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 18px;
}

.sh-action-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #0b1437;
}

@media (max-width: 640px) {
    .sh-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Dashboard — recent activity
   -------------------------------------------------------------------------- */
.sh-activity {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-activity li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sh-activity li:last-child {
    border-bottom: none;
}

.sh-activity-info {
    min-width: 0;
}

.sh-activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-activity-meta {
    font-size: 12px;
    color: #94a3b8;
}

.sh-activity-amount {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
}

.sh-credit { color: #10b981; }
.sh-debit  { color: #ef4444; }

.sh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.sh-empty i {
    font-size: 28px;
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Sidebar / theme base overrides
   -------------------------------------------------------------------------- */
.dt-side-nav__link i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 12px;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.dt-side-nav__link.active i,
.dt-side-nav__link:hover i {
    color: #ffffff;
}

.dt-side-nav__text {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Header dropdown menus
   -------------------------------------------------------------------------- */
.dt-header .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 20, 55, 0.15);
    padding: 0;
    overflow: hidden;
}

.dt-header .dropdown-menu .dt-avatar-wrapper.bg-gradient-purple {
    background: linear-gradient(135deg, #0b1437 0%, #1e3a8a 100%) !important;
    border-radius: 12px 12px 0 0;
}

.dt-header .dropdown-item {
    padding: 11px 18px;
    font-size: 14px;
    color: #0f172a;
    transition: background 0.15s ease;
}

.dt-header .dropdown-item:hover,
.dt-header .dropdown-item:focus {
    background: #f1f5f9;
    color: #0b1437;
}

.dt-header .dropdown-item i {
    color: #64748b;
    width: 18px;
    text-align: center;
}

.dt-header .dropdown-item:hover i {
    color: #2563eb;
}

.dt-header .dropdown-menu-header {
    padding: 14px 18px;
    font-weight: 600;
    color: #0f172a;
}

.dt-header .dropdown-menu-footer {
    padding: 12px 18px;
    background: #f8fafc;
}

/* ==========================================================================
   Theme color overrides
   ========================================================================== */

.dt-header,
.dt-brand {
    background-color: #0b1437 !important;
}

.dt-sidebar {
    background-color: #0b1437 !important;
}

.dt-side-nav > .dt-side-nav__item.selected > a,
.dt-side-nav > .dt-side-nav__item.open > a,
.dt-side-nav__link:hover,
.dt-side-nav__link:focus,
.dt-side-nav__link:active {
    color: #93c5fd !important;
}

.dt-side-nav__link.active,
.dt-side-nav__link.selected {
    color: #93c5fd !important;
}

.dt-side-nav__header .dt-side-nav__text {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.dt-side-nav__header:not(:first-child):before {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.dt-entry__header:after {
    background-color: #2563eb !important;
}

.dt-entry__title,
.dt-entry__header {
    color: #0b1437;
}

.btn-secondary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 22px;
    box-shadow: none;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: none;
}

.btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.dt-content,
.dt-content-wrapper {
    background-color: #dde5ee;
}

.dt-sidebar--fixed .dt-sidebar {
    top: 72px !important;
    height: calc(100vh - 72px) !important;
}

.dt-brand__logo-link:hover,
.dt-brand__logo-link:focus {
    background: transparent !important;
}

.dt-header .dt-nav__link,
.dt-header .dt-nav__link i {
    color: #ffffff;
}

.dt-header .dt-nav__link:hover,
.dt-header .dt-nav__link:focus {
    color: #93c5fd;
}

.dt-header .dt-nav__link:hover i,
.dt-header .dt-nav__link:focus i {
    color: #93c5fd;
}

/* ==========================================================================
   Page layout — footer at the bottom of the viewport, no residual whitespace
   ========================================================================== */

html {
    background-color: #dde5ee;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #dde5ee;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.dt-root {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    background-color: #dde5ee;
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dt-root__inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 100vh !important;
    background-color: #dde5ee;
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dt-main {
    flex: 1 1 auto !important;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 0 !important;
    width: 100%;
    background-color: #dde5ee;
}

.dt-content-wrapper {
    background-color: #dde5ee;
    flex: 1 1 auto;
    min-width: 0;
}

.dt-footer {
    background-color: #0b1437 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 18px 32px !important;
    font-size: 13px;
    text-align: center;
    width: 100%;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    flex-shrink: 0 !important;
}

/* Kill residual whitespace after the footer / at the bottom of the page */
body::after {
    content: none !important;
    display: none !important;
}

.dt-root + * {
    display: none !important;
}

/* ==========================================================================
   Neutralize theme-semidark dark-background leaks
   ========================================================================== */

body.theme-semidark .dt-root,
body.theme-semidark .dt-root__inner,
body.theme-semidark .dt-main,
body.theme-semidark .dt-content-wrapper,
body.theme-semidark .dt-content {
    background-color: #dde5ee !important;
}

body.theme-semidark .dt-sidebar,
body.theme-semidark .dt-header,
body.theme-semidark .dt-brand {
    background-color: #0b1437 !important;
}

body.theme-semidark .dt-side-nav__link i {
    color: rgba(255, 255, 255, 0.5);
}

body.theme-semidark .dt-side-nav__link.active i,
body.theme-semidark .dt-side-nav__link:hover i {
    color: #ffffff;
}

body.theme-semidark .dt-footer {
    background-color: #0b1437 !important;
}

/* --------------------------------------------------------------------------
   SweetAlert polish — smaller, more colorful popups
   -------------------------------------------------------------------------- */
.sweet-alert {
    width: 320px !important;
    max-width: 90vw !important;
    padding: 20px 20px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
}

.sweet-alert h2 {
    font-size: 18px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    margin: 12px 0 8px !important;
    line-height: 1.3 !important;
}

.sweet-alert p {
    font-size: 14px !important;
    color: #475569 !important;
}

.sweet-alert .icon {
    width: 60px !important;
    height: 60px !important;
    margin: 10px auto 8px !important;
}

.sweet-alert .icon.success {
    border-color: #10b981 !important;
}

.sweet-alert .icon.success .line {
    background-color: #10b981 !important;
}

.sweet-alert button.confirm {
    background-color: #2563eb !important;
    font-size: 13px !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.sweet-alert button.confirm:hover {
    background-color: #1d4ed8 !important;
}

.sweet-alert.alert-warning .icon {
    border-color: #f59e0b !important;
}

.sweet-alert.alert-warning .icon .body {
    background-color: #f59e0b !important;
}

.sweet-alert.alert-warning h2 {
    color: #92400e !important;
}

.sweet-alert.alert-error .icon {
    border-color: #ef4444 !important;
}

.sweet-alert.alert-error .icon .line {
    background-color: #ef4444 !important;
}

.sweet-alert.alert-error h2 {
    color: #991b1b !important;
}

.sweet-alert.alert-success .icon.success {
    border-color: #10b981 !important;
}

.sweet-alert.alert-success h2 {
    color: #065f46 !important;
}
/* Hide number input spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}