:root {
    --ap-primary: #1f2937;
    --ap-accent: #f59e0b;
    --ap-surface: #ffffff;
    --ap-border: #e5e7eb;
    --ap-text: #111827;
    --ap-muted: #6b7280;
}

body {
    color: var(--ap-text);
    font-family: Arial, Helvetica, sans-serif;
}

.ap-navbar {
    background: linear-gradient(90deg, #111827 0%, #1f2937 70%, #374151 100%);
}


.ap-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.ap-brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.ap-brand-text {
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .ap-brand-logo {
        height: 28px;
    }

    .ap-brand-text {
        font-size: .95rem;
    }
}


.ap-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 1rem;
    box-shadow: 0 .5rem 1rem rgba(17,24,39,.06);
}


.ap-auth-card {
    max-width: 1040px;
    margin: 3rem auto;
}

.ap-auth-split {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch;
}

.ap-auth-photo {
    min-height: 100%;
    min-height: 560px;
    background-color: #dbe4ee;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-right: 1px solid var(--ap-border);
}

.ap-auth-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.08) 0%, rgba(17,24,39,.22) 100%);
}

.ap-auth-photo--empty {
    background: linear-gradient(135deg, #dbe4ee 0%, #eef2f7 100%);
}

.ap-auth-photo__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-auth-photo__placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ap-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
}

@media (max-width: 767.98px) {
    .ap-auth-split {
        grid-template-columns: 1fr;
    }

    .ap-auth-photo,
    .ap-auth-form {
        min-height: 280px;
    }
}

.ap-auth-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.ap-muted {
    color: var(--ap-muted);
}

.ap-btn-primary {
    background-color: var(--ap-accent);
    border-color: var(--ap-accent);
    color: #111827;
    font-weight: 600;
}

.ap-btn-primary:hover,
.ap-btn-primary:focus {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

.ap-project-card,
.ap-media-card {
    height: 100%;
}

.ap-placeholder {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: .75rem;
    color: var(--ap-muted);
    font-weight: 600;
}

.ap-placeholder-pdf {
    min-height: 220px;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
    border: 1px dashed #d1d5db;
    font-size: 1.2rem;
    letter-spacing: .08em;
}

.ap-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

.ap-pdf-preview {
    position: relative;
    min-height: 220px;
    height: 220px;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
    border: 1px dashed #d1d5db;
    border-radius: .75rem;
    overflow: hidden;
}


.ap-text-entry-preview {
    min-height: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ap-text-entry-preview .small:last-child {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    line-height: 1.45;
}

.ap-pdf-object {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.ap-pdf-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-muted);
    font-weight: 700;
    letter-spacing: .08em;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

.ap-pdf-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ap-pdf-preview:hover {
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, .35);
}



.ap-media-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    min-width: 0;
}

.ap-media-card__title {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.ap-media-card__status-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.ap-media-card__status-row .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}

.ap-media-card__meta {
    display: grid;
    gap: .2rem;
}

.ap-media-card__meta-item {
    font-size: .78rem;
    line-height: 1.35;
    color: var(--ap-muted);
}


.customer-footer {    padding: 1.5rem 0;
    border-top: 1px solid #d9d9d9;
    background: #f7f7f7;
    font-size: 0.95rem;
    color: #333;
}

.customer-footer a {
    color: inherit;
    text-decoration: none;
}

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

.customer-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.customer-footer__col {
    width: 100%;
    line-height: 1.5;
}

.customer-footer__col--logo {
    justify-self: start;
}

.customer-footer__col--address {
    text-align: left;
}

.customer-footer__col--note {
    color: #555;
    text-align: left;
}

@media (min-width: 768px) {
    .customer-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
        column-gap: 1.5rem;
        row-gap: 0;
    }

    .customer-footer__col--logo,
    .customer-footer__col--address,
    .customer-footer__col--note {
        min-width: 0;
        align-self: start;
    }

    .customer-footer__col--logo {
        justify-self: start;
    }

    .customer-footer__col--address {
        text-align: left;
    }

    .customer-footer__col--note {
        text-align: right;
        justify-self: stretch;
    }

    .customer-footer__inner--no-logo {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

.customer-footer__col--logo img {
    display: block;
}

.customer-footer__col--address p,
.customer-footer__col--address div,
.customer-footer__col--note p,
.customer-footer__col--note div {
    margin-bottom: .35rem;
}

.customer-footer__col--address > :last-child,
.customer-footer__col--note > :last-child {
    margin-bottom: 0;
}

.ap-password-toggle {
    min-width: 3rem;
    font-size: 1.05rem;
    line-height: 1;
}

.ap-password-toggle[aria-pressed="true"] {
    background-color: #fff7ed;
    border-color: #f59e0b;
    color: #b45309;
}


.ap-footer-logo {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
}




.ap-activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ap-stat-card {
    padding: 1rem 1.1rem;
}

.ap-stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: .35rem;
}

.ap-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.ap-activity-list {
    display: grid;
    gap: 1rem;
}

.ap-activity-entry {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 .3rem .8rem rgba(17,24,39,.04);
}

.ap-activity-entry--impersonation {
    border-color: #f4c46a;
    box-shadow: 0 .35rem .9rem rgba(245, 158, 11, .10);
}

.ap-activity-entry__top {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.ap-activity-entry__time {
    border-right: 1px solid #e5e7eb;
    padding-right: 1rem;
}

.ap-activity-entry__date {
    font-weight: 700;
    line-height: 1.2;
}

.ap-activity-entry__clock {
    color: #6b7280;
    margin-top: .25rem;
    font-size: .95rem;
}

.ap-activity-entry__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .65rem;
}

.ap-activity-action-badge {
    font-weight: 700;
}

.ap-activity-entry__title {
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: .4rem;
}

.ap-activity-entry__subline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    color: #4b5563;
    font-size: .92rem;
}

.ap-activity-entry__notice {
    margin-top: .8rem;
    padding: .75rem .9rem;
    border-radius: .8rem;
    background: #fff7e6;
    color: #7c5800;
    border: 1px solid #f5d08a;
}

.ap-activity-entry__changes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}

.ap-activity-change-card {
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    background: #f9fafb;
    padding: .8rem .9rem;
}

.ap-activity-change-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: .3rem;
}

.ap-activity-change-value {
    white-space: pre-wrap;
    word-break: break-word;
    color: #111827;
}


.ap-text-entry-content {
    white-space: normal;
    line-height: 1.6;
}

.ap-text-entry-content p {
    margin: 0 0 1rem;
}

.ap-text-entry-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .ap-activity-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-activity-entry__top {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .ap-activity-entry__time {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: .75rem;
    }
}

@media (max-width: 767.98px) {
    .ap-activity-stats {
        grid-template-columns: 1fr;
    }

    .ap-activity-entry {
        padding: .9rem;
    }

    .ap-activity-entry__title {
        font-size: .98rem;
    }

    .ap-activity-entry__changes {
        grid-template-columns: 1fr;
    }
}


.ap-editorjs {
    border: 1px solid var(--ap-border);
    border-radius: .75rem;
    background: #fff;
    overflow: hidden;
}

.ap-editorjs__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ap-border);
    background: #f9fafb;
    color: #475569;
    font-size: .9rem;
}

.ap-editorjs__hint {
    margin: 0;
}

.ap-editorjs__holder {
    min-height: 260px;
}

.ap-editorjs .codex-editor__redactor {
    padding-bottom: 1.5rem !important;
}

.ap-editorjs .ce-block__content,
.ap-editorjs .ce-toolbar__content {
    max-width: min(760px, calc(100% - 48px));
}

.ap-editorjs .ce-paragraph,
.ap-editorjs .ce-header {
    line-height: 1.6;
}

.ap-editorjs .ce-paragraph[data-placeholder]:empty::before {
    color: #94a3b8;
}

.ap-text-entry-content p,
.ap-project-richtext p {
    margin: 0 0 1rem;
}

.ap-text-entry-content ul,
.ap-text-entry-content ol,
.ap-project-richtext ul,
.ap-project-richtext ol {
    margin: 0 0 1rem 1.25rem;
}


.ap-media-detail-preview {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #f3f4f6;
}

.ap-media-detail-preview--portrait {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    max-height: 78vh;
}

.ap-media-detail-row--portrait .ap-card:first-child {
    text-align: center;
}

.ap-media-detail-meta {
    display: grid;
    gap: .15rem;
}

.ap-media-view-card--portrait {
    text-align: center;
}

.ap-media-view-image {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
}

.ap-media-view-image--portrait {
    max-width: min(680px, 100%);
}

@media (max-width: 991.98px) {
    .ap-media-detail-preview,
    .ap-media-detail-preview--portrait,
    .ap-media-view-image {
        max-height: none;
    }
}


.customer-footer__admins {
    margin-top: 2rem;
    margin-bottom: 2.75rem;
    padding: 1.5rem;
    background: #eaf1f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
}

.customer-footer__admins-header {
    margin-bottom: 1rem;
}

.customer-footer__admins-title {
    margin: 0 0 .25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #122033;
}

.customer-footer__admins-text {
    margin: 0;
    color: #4b5563;
}

.customer-footer__admins-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.customer-footer__admin-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.customer-footer__admin-photo-wrap {
    width: 72px;
    height: 72px;
}

.customer-footer__admin-photo {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.customer-footer__admin-photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.customer-footer__admin-name {
    margin: 0 0 .45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #122033;
}

.customer-footer__admin-body {
    min-width: 0;
}

.customer-footer__admin-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: #334155;
    word-break: break-word;
}

.customer-footer__admin-link:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .customer-footer__admins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .customer-footer__admins-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* UIkit foundation redesign bridge */

body.ap-page { background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%); min-height: 100vh; }
.ap-site-header { background: linear-gradient(135deg, #0f172a 0%, #172554 55%, #1d4ed8 100%); box-shadow: 0 14px 34px rgba(15, 23, 42, .18); position: sticky; top: 0; z-index: 1000; }
.ap-main { padding: 2rem 0 2.5rem; }
.ap-site-header .uk-navbar-container { background: transparent; }
.ap-navbar-nav > li > a, .ap-site-header .uk-navbar-item, .ap-offcanvas-nav a { color: rgba(255,255,255,.9); font-weight: 600; }
.ap-navbar-nav > li:hover > a, .ap-navbar-nav > li > a:focus { color: #fff; }
.ap-topbar-button { border-radius: 999px; border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.ap-topbar-button:hover, .ap-topbar-button:focus { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.ap-offcanvas { background: linear-gradient(180deg, #111827 0%, #1f2937 100%); }
.ap-offcanvas-brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: #fff; }
.ap-navbar-dropdown { border-radius: 1rem; border: 1px solid rgba(15,23,42,.08); box-shadow: 0 18px 45px rgba(15,23,42,.16); }
.uk-container { max-width: 1240px; }
.container { width: min(100%, 1240px); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.row > * { padding-left: 12px; padding-right: 12px; box-sizing: border-box; }
.col, .col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}
.card, .ap-card, .table-responsive, .customer-footer__admin-card, .customer-footer__inner, .uk-card {
  background: rgba(255,255,255,.94); border: 1px solid rgba(148,163,184,.18); border-radius: 22px; box-shadow: 0 16px 34px rgba(15,23,42,.08);
}
.card, .uk-card { padding: 1.25rem; }
.table-responsive { overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: .85rem 1rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; background: #f8fafc; }
.table tbody tr:hover { background: #f8fbff; }
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; font-weight: 700; border: 1px solid transparent;
  padding: .72rem 1.15rem; text-decoration: none; cursor: pointer; transition: all .2s ease;
}
.btn-sm { padding: .5rem .85rem; font-size: .875rem; }
.btn-primary, .ap-btn-primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border-color: #1d4ed8; }
.btn-primary:hover, .ap-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(37,99,235,.25); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-outline-secondary, .btn-light { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff; border-color: #dc2626; }
.btn-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #111827; border-color: #d97706; }
.btn-success { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; border-color: #16a34a; }
.form-control, .form-select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select {
  width: 100%; border-radius: 16px; border: 1px solid #cbd5e1; background: #fff; padding: .85rem 1rem; min-height: 48px; box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}
.form-control:focus, .form-select:focus, textarea:focus, input:focus, select:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
label, .form-label { font-weight: 700; color: #0f172a; margin-bottom: .45rem; display: inline-block; }
.badge { display: inline-flex; align-items: center; padding: .38rem .72rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.bg-light, .bg-white { background: transparent !important; }
.alert, .uk-alert { border-radius: 18px; border: 1px solid rgba(148,163,184,.22); box-shadow: 0 12px 24px rgba(15,23,42,.06); }
.ap-alert-flex { display:flex; justify-content:space-between; align-items:center; gap: 1rem; }
@media (max-width: 767px){ .ap-alert-flex{ flex-direction:column; align-items:flex-start;} .col-6,.col-4,.col-3{flex:0 0 100%;max-width:100%;} }
.customer-footer { margin-top: 4rem; }

/* compact normalization */
.btn, button.btn, a.btn {
  min-height: 34px;
  padding: .42rem .78rem;
  font-size: .875rem;
  line-height: 1.2;
  border-radius: 10px;
  box-shadow: none;
}
.btn:hover, button.btn:hover, a.btn:hover,
.btn:focus, button.btn:focus, a.btn:focus {
  transform: none !important;
  box-shadow: none !important;
}
.btn-sm, button.btn-sm, a.btn-sm {
  min-height: 30px;
  padding: .32rem .62rem;
  font-size: .8125rem;
  line-height: 1.15;
}
.btn.rounded-circle,
a.btn.rounded-circle,
button.btn.rounded-circle {
  width: 1.95rem !important;
  min-width: 1.95rem !important;
  height: 1.95rem !important;
  min-height: 1.95rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
}
.btn .uk-icon,
button.btn .uk-icon,
a.btn .uk-icon {
  width: 14px;
  height: 14px;
}
.ap-password-toggle {
  min-width: 2.2rem;
  min-height: 34px;
  padding-left: .55rem;
  padding-right: .55rem;
  font-size: .95rem;
}

/* tighter spacing utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-inline { display: inline; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: .75rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: .75rem !important; }
.ms-2 { margin-left: .5rem !important; }
.me-2 { margin-right: .5rem !important; }
.p-3 { padding: .75rem !important; }
.p-4 { padding: 1rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.px-3 { padding-left: .75rem !important; padding-right: .75rem !important; }

.table th, .table td { padding: .7rem .85rem; }
.card, .uk-card { padding: 1rem; }
.ap-main { padding: 1.5rem 0 2rem; }

ul, ol { padding-left: 1.15rem; }
ul li, ol li { margin: 0 0 .2rem; }
.ap-text-entry-content ul,
.ap-text-entry-content ol,
.ap-project-richtext ul,
.ap-project-richtext ol {
    margin: 0 0 .75rem 1.1rem;
}
.ap-text-entry-content p,
.ap-project-richtext p {
    margin: 0 0 .75rem;
}


/* corporate design override */
:root {
    --ap-primary: #000000;
    --ap-accent: #ED7103;
    --ap-surface: #ffffff;
    --ap-border: #d7d7d7;
    --ap-text: #000000;
    --ap-muted: #555555;
}

body,
body.ap-page {
    background: #ffffff;
    color: var(--ap-text);
}

a { color: var(--ap-accent); }
a:hover, a:focus { color: #c85f02; }

.ap-navbar,
.ap-site-header,
.ap-offcanvas {
    background: #000000 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.ap-brand-text,
.ap-offcanvas-brand,
.ap-navbar-nav > li > a,
.ap-site-header .uk-navbar-item,
.ap-offcanvas-nav a,
.ap-navbar-nav > li:hover > a,
.ap-navbar-nav > li > a:focus {
    color: #ffffff !important;
}

.ap-topbar-button,
.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,.35);
}
.ap-topbar-button:hover,
.ap-topbar-button:focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(237,113,3,.16);
    color: #ffffff;
    border-color: #ED7103;
}

.card, .ap-card, .table-responsive, .customer-footer__admin-card, .customer-footer__inner, .uk-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.table th, .table td { border-bottom: 1px solid rgba(0,0,0,.10); }
.table thead th {
    color: #000000;
    background: rgba(237,113,3,.08);
}
.table tbody tr:hover { background: rgba(237,113,3,.04); }

.btn,
button.btn,
a.btn {
    min-height: 32px;
    padding: .34rem .72rem;
    font-size: .8125rem;
    line-height: 1.15;
    border-radius: 8px;
}
.btn-sm,
button.btn-sm,
a.btn-sm {
    min-height: 28px;
    padding: .26rem .56rem;
    font-size: .75rem;
}
.btn.rounded-circle,
a.btn.rounded-circle,
button.btn.rounded-circle {
    width: 1.8rem !important;
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

.btn-primary,
.ap-btn-primary,
.btn-warning,
.btn-success {
    background: #ED7103;
    color: #ffffff;
    border-color: #ED7103;
}
.btn-primary:hover,
.ap-btn-primary:hover,
.btn-warning:hover,
.btn-success:hover,
.btn-primary:focus,
.ap-btn-primary:focus,
.btn-warning:focus,
.btn-success:focus {
    background: #c85f02;
    color: #ffffff;
    border-color: #c85f02;
}

.btn-outline-secondary,
.btn-light {
    background: #ffffff;
    color: #000000;
    border-color: rgba(0,0,0,.18);
}
.btn-outline-secondary:hover,
.btn-light:hover,
.btn-outline-secondary:focus,
.btn-light:focus {
    background: rgba(237,113,3,.08);
    color: #000000;
    border-color: #ED7103;
}

.btn-danger {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}
.btn-danger:hover,
.btn-danger:focus {
    background: #ED7103;
    color: #ffffff;
    border-color: #ED7103;
}

.form-control, .form-select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select {
    border: 1px solid rgba(0,0,0,.18);
    background: #ffffff;
    color: #000000;
    min-height: 42px;
    border-radius: 10px;
}
.form-control:focus, .form-select:focus, textarea:focus, input:focus, select:focus {
    border-color: #ED7103;
    box-shadow: 0 0 0 3px rgba(237,113,3,.16);
}
label, .form-label { color: #000000; }

.badge {
    background: rgba(237,113,3,.12);
    color: #000000;
    border: 1px solid rgba(237,113,3,.28);
}

.alert, .uk-alert {
    background: #ffffff;
    border: 1px solid rgba(237,113,3,.28);
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.ap-placeholder,
.ap-thumb,
.ap-pdf-preview,
.ap-auth-photo--empty {
    background: rgba(237,113,3,.06);
}
.ap-pdf-preview,
.ap-placeholder-pdf {
    border-color: rgba(237,113,3,.30);
}


/* header logout/button size fix */
.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    height: 28px;
    padding: 0 .62rem;
    font-size: .75rem;
    line-height: 1;
    border-radius: 8px;
    box-sizing: border-box;
}


/* unified button geometry based on customer status button */
:root {
    --ap-btn-height: 32px;
    --ap-btn-padding-y: .34rem;
    --ap-btn-padding-x: .78rem;
    --ap-btn-radius: 8px;
    --ap-btn-font-size: .8125rem;
    --ap-btn-line-height: 1.15;
}

.btn,
button.btn,
a.btn,
.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: var(--ap-btn-height);
    height: var(--ap-btn-height);
    padding: var(--ap-btn-padding-y) var(--ap-btn-padding-x);
    font-size: var(--ap-btn-font-size);
    font-weight: 600;
    line-height: var(--ap-btn-line-height);
    border-radius: var(--ap-btn-radius);
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm,
button.btn-sm,
a.btn-sm {
    min-height: var(--ap-btn-height);
    height: var(--ap-btn-height);
    padding: var(--ap-btn-padding-y) var(--ap-btn-padding-x);
    font-size: var(--ap-btn-font-size);
    line-height: var(--ap-btn-line-height);
    border-radius: var(--ap-btn-radius);
}

.btn.rounded-circle,
a.btn.rounded-circle,
button.btn.rounded-circle {
    width: 1.8rem !important;
    min-width: 1.8rem !important;
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

.ap-topbar-button:hover,
.ap-topbar-button:focus {
    background: rgba(237,113,3,.16);
    color: #ffffff;
    border-color: #ED7103;
}


/* projects page clarity + stronger contrast */
.ap-project-toolbar {
    border: 1px solid rgba(237,113,3,.35);
}

.ap-project-status-card {
    border: 1px solid rgba(0,0,0,.14);
}

.ap-projects-list {
    display: grid;
    gap: .9rem;
}

.ap-project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
    background: #fff;
}

.ap-project-row + .ap-project-row {
    margin-top: 0;
}

.ap-project-row__main {
    min-width: 0;
}

.ap-project-row__title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}

.ap-project-row__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
}

.ap-project-row__excerpt {
    margin: 0 0 .65rem;
    color: #444;
    line-height: 1.45;
}

.ap-project-row__meta,
.ap-project-row__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.ap-project-row__keywords {
    margin-top: .65rem;
}

.ap-project-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .34rem .56rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: #000;
    font-size: .77rem;
    line-height: 1.2;
}

.ap-project-meta-pill.is-allowed {
    background: rgba(237,113,3,.16);
    border-color: #ED7103;
}

.ap-project-meta-pill.is-locked {
    background: rgba(0,0,0,.06);
    border-color: rgba(0,0,0,.24);
}

.ap-project-row__actions {
    display: grid;
    align-content: start;
    gap: .45rem;
    min-width: 170px;
}

.ap-project-row__actions .btn,
.ap-project-row__actions form,
.ap-project-row__actions form .btn {
    width: 100%;
}

.ap-btn-strong {
    background: #ED7103;
    color: #000;
    border-color: #A94D00;
}

.ap-btn-strong:hover,
.ap-btn-strong:focus {
    background: #c85f02;
    color: #fff;
    border-color: #8f4403;
}

.ap-btn-contrast,
.btn-outline-secondary,
.btn-light,
.btn-outline-success {
    background: #fff;
    color: #000;
    border-color: #000;
}

.ap-btn-contrast:hover,
.ap-btn-contrast:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    background: #000;
    color: #fff;
    border-color: #000;
}

.ap-btn-soft {
    background: rgba(237,113,3,.10);
    color: #000;
    border-color: rgba(237,113,3,.55);
}

.ap-btn-soft:hover,
.ap-btn-soft:focus {
    background: #ED7103;
    color: #000;
    border-color: #A94D00;
}

.ap-btn-danger-strong,
.btn-danger {
    background: #000;
    color: #fff;
    border-color: #000;
}

.ap-btn-danger-strong:hover,
.ap-btn-danger-strong:focus,
.btn-danger:hover,
.btn-danger:focus {
    background: #ED7103;
    color: #000;
    border-color: #A94D00;
}

@media (max-width: 991.98px) {
    .ap-project-row {
        grid-template-columns: 1fr;
    }

    .ap-project-row__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .ap-project-row {
        padding: .9rem;
    }

    .ap-project-row__title-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .ap-project-row__actions {
        grid-template-columns: 1fr;
    }
}


.ap-btn-icon-only {
    width: 36px;
    min-width: 36px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
}

.ap-btn-icon-only .uk-icon {
    transform: none;
}


/* icon action buttons: badge shape, icon width only, semantic hover states */
.ap-btn-icon-only,
a.ap-btn-icon-only,
button.ap-btn-icon-only {
    width: auto;
    min-width: 0;
    padding: .38rem .58rem !important;
    border-radius: 999px !important;
    gap: 0;
    aspect-ratio: auto;
}

.ap-btn-icon-only .uk-icon,
a.ap-btn-icon-only .uk-icon,
button.ap-btn-icon-only .uk-icon {
    width: 14px;
    height: 14px;
}

/* default compact icon button style */
.btn-outline-secondary.ap-btn-icon-only,
.btn-outline-danger.ap-btn-icon-only,
.ap-btn-strong.ap-btn-icon-only,
.ap-btn-danger-strong.ap-btn-icon-only {
    background: #fff;
    color: #000;
    border-width: 1px;
}

/* edit */
.btn-outline-secondary.ap-btn-icon-only:hover,
.btn-outline-secondary.ap-btn-icon-only:focus,
.ap-btn-strong.ap-btn-icon-only:hover,
.ap-btn-strong.ap-btn-icon-only:focus {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

/* delete */
.btn-outline-danger.ap-btn-icon-only:hover,
.btn-outline-danger.ap-btn-icon-only:focus,
.ap-btn-danger-strong.ap-btn-icon-only:hover,
.ap-btn-danger-strong.ap-btn-icon-only:focus {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* keep project action rail compact when icon-only buttons are used */
.ap-project-row__actions .ap-btn-icon-only,
.ap-project-row__actions form .ap-btn-icon-only {
    width: auto;
}


/* v102: unify all buttons to badge shape + improve projects layout */
:root {
    --ap-control-height: 32px;
    --ap-btn-height: var(--ap-control-height);
    --ap-badge-height: var(--ap-control-height);
    --ap-btn-padding-y: .34rem;
    --ap-btn-padding-x: .84rem;
    --ap-btn-radius: 999px;
    --ap-btn-font-size: .8125rem;
    --ap-btn-line-height: 1.15;
}

.btn,
button.btn,
a.btn,
.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    border-radius: var(--ap-btn-radius) !important;
    padding: var(--ap-btn-padding-y) var(--ap-btn-padding-x);
    gap: .4rem;
}

.btn-sm,
button.btn-sm,
a.btn-sm {
    border-radius: var(--ap-btn-radius) !important;
    padding: var(--ap-btn-padding-y) calc(var(--ap-btn-padding-x) - .04rem);
}

.btn-group > .btn,
.btn-group-vertical > .btn {
    border-radius: var(--ap-btn-radius) !important;
}

.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    min-height: var(--ap-btn-height);
    height: var(--ap-btn-height);
    padding: 0 var(--ap-btn-padding-x);
}

.ap-btn-icon-only,
a.ap-btn-icon-only,
button.ap-btn-icon-only {
    min-width: 0;
    width: auto;
    padding: 0 .62rem !important;
    border-radius: var(--ap-btn-radius) !important;
}

/* project page layout tuned for compact pill buttons */
.ap-project-toolbar .row {
    row-gap: .85rem;
}

.ap-project-status-card {
    padding: 1rem 1.1rem !important;
}

.ap-projects-list {
    gap: .75rem;
}

.ap-project-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .9rem 1rem;
    padding: .95rem 1rem;
    align-items: start;
}

.ap-project-row__title-line {
    margin-bottom: .3rem;
}

.ap-project-row__excerpt {
    margin-bottom: .55rem;
    font-size: .94rem;
}

.ap-project-row__meta,
.ap-project-row__keywords {
    gap: .38rem;
}

.ap-project-meta-pill,
.ap-project-row__keywords .badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ap-badge-height);
    height: var(--ap-badge-height);
    padding: 0 .72rem;
    border-radius: var(--ap-btn-radius);
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
}

.ap-project-meta-pill strong {
    line-height: 1;
}

.ap-project-row__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: .4rem;
    min-width: 0;
    max-width: 260px;
}

.ap-project-row__actions form {
    width: auto;
    margin: 0;
}

.ap-project-row__actions .btn,
.ap-project-row__actions form .btn {
    width: auto;
    flex: 0 0 auto;
}

.ap-project-row__actions .ap-btn-contrast {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .ap-project-row {
        grid-template-columns: 1fr;
    }

    .ap-project-row__actions {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .ap-project-row {
        padding: .85rem;
    }

    .ap-project-row__actions {
        gap: .35rem;
    }

    .ap-project-row__actions .ap-btn-contrast {
        width: 100%;
        justify-content: center;
    }
}



/* v107: global border defaults incl. gray border for transparent buttons */
:root {
    --ap-btn-border-neutral: #9ca3af;
}

.ap-topbar-button,
.btn-outline-light,
.btn-outline-danger {
    border-color: var(--ap-btn-border-neutral) !important;
}

.btn-outline-danger {
    background: transparent;
    color: #000;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c !important;
}

/* v104: every button with a visible border */
.btn,
button.btn,
a.btn,
.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    border-width: 1px !important;
    border-style: solid !important;
}

.btn-primary,
.ap-btn-primary,
.ap-btn-strong,
.btn-warning,
.btn-success {
    border-color: #000 !important;
}

.btn-danger,
.ap-btn-danger-strong {
    border-color: #000 !important;
}

.ap-btn-contrast,
.btn-outline-secondary,
.btn-light,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-light,
.ap-btn-soft {
    border-width: 1px !important;
    border-style: solid !important;
}

.btn-outline-danger,
.btn-outline-light {
    border-color: var(--ap-btn-border-neutral) !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn:focus,
button.btn:focus,
a.btn:focus,
.ap-topbar-button:hover,
.ap-topbar-button:focus {
    border-width: 1px !important;
    border-style: solid !important;
}


/* v106: customer section buttons aligned to global pill button system */
.table .btn,
.table form .btn {
    vertical-align: middle;
}

.table .d-inline-flex.gap-2,
.table .d-flex.gap-2 {
    align-items: center;
}

.table .btn.ap-btn-icon-only {
    padding-left: .62rem !important;
    padding-right: .62rem !important;
}

.table .ap-btn-strong,
.table .ap-btn-contrast,
.table .ap-btn-danger-strong {
    white-space: nowrap;
}


/* v108: project-wide global button formatting on all pages */
:root {
    --ap-btn-border-neutral: #9ca3af;
    --ap-btn-border-strong: #000000;
    --ap-btn-border-brand: #a94d00;
}

.btn,
button.btn,
a.btn,
.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: var(--ap-btn-radius) !important;
}

/* Filled / strong buttons keep a dark visible border */
.btn-primary,
.ap-btn-primary,
.ap-btn-strong,
.btn-warning,
.btn-success,
.btn-danger,
.ap-btn-danger-strong,
.btn-dark {
    border-color: var(--ap-btn-border-strong) !important;
}

/* Buttons with white or transparent base get a neutral gray border globally */
.ap-btn-contrast,
.btn-outline-secondary,
.btn-light,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-light,
.btn-outline-dark,
.btn-outline-primary,
.ap-btn-soft,
.ap-topbar-button {
    border-color: var(--ap-btn-border-neutral) !important;
}

.ap-btn-contrast,
.btn-outline-secondary,
.btn-light,
.btn-outline-success,
.btn-outline-dark,
.btn-outline-primary,
.ap-topbar-button {
    background: #fff !important;
    color: #000 !important;
}

.btn-outline-danger {
    background: #fff !important;
    color: #000 !important;
}

/* Keep semantic hover states while preserving visible borders */
.ap-btn-primary:hover,
.ap-btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus,
.ap-btn-strong:hover,
.ap-btn-strong:focus,
.btn-warning:hover,
.btn-warning:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: var(--ap-btn-border-brand) !important;
}

.ap-btn-contrast:hover,
.ap-btn-contrast:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.ap-topbar-button:hover,
.ap-topbar-button:focus {
    border-color: var(--ap-btn-border-strong) !important;
}

.ap-btn-soft:hover,
.ap-btn-soft:focus {
    border-color: var(--ap-btn-border-brand) !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    border-color: #b91c1c !important;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-danger:hover,
.btn-danger:focus,
.ap-btn-danger-strong:hover,
.ap-btn-danger-strong:focus {
    border-color: var(--ap-btn-border-brand) !important;
}


/* global edit-button hover */
.ap-btn-edit:hover,
.ap-btn-edit:focus,
a.ap-btn-edit:hover,
a.ap-btn-edit:focus,
button.ap-btn-edit:hover,
button.ap-btn-edit:focus {
    background: #198754 !important;
    color: #fff !important;
    border-color: #198754 !important;
}

.ap-btn-edit:hover .uk-icon,
.ap-btn-edit:focus .uk-icon,
a.ap-btn-edit:hover .uk-icon,
a.ap-btn-edit:focus .uk-icon,
button.ap-btn-edit:hover .uk-icon,
button.ap-btn-edit:focus .uk-icon {
    color: inherit;
}


/* v110: user intro refinement + assigned footer admin highlight */
.ap-user-intro {
    padding: 1.1rem 1.15rem;
}

.ap-user-intro__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .95rem;
}

.ap-user-intro__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.ap-user-intro__item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 84px;
    padding: .85rem .95rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}

.ap-user-intro__item--hint {
    background: #fff8f1;
    border-color: #f4c288;
}

.ap-user-intro__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
}

.ap-user-intro__value {
    font-size: 1rem;
    line-height: 1.4;
    color: #000;
}

.customer-footer__admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
}

.customer-footer__admin-card--assigned {
    border-color: #ED7103 !important;
    box-shadow: 0 0 0 2px rgba(237, 113, 3, .14), 0 .65rem 1.25rem rgba(0,0,0,.08);
    background: linear-gradient(180deg, #fff 0%, #fff7ef 100%);
}

.customer-footer__admin-card--assigned .customer-footer__admin-name,
.customer-footer__admin-card--assigned .customer-footer__admin-link {
    color: #000;
}

.customer-footer__admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ap-badge-height);
    padding: 0 .72rem;
    border-radius: 999px;
    border: 1px solid #000;
    background: #ED7103;
    color: #000;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .ap-user-intro__grid {
        grid-template-columns: 1fr;
    }

    .ap-user-intro__item {
        min-height: 0;
    }
}

/* v112: logout vertical centering + footer spacing refinement */
.uk-navbar-right.uk-visible\@m,
.uk-navbar-right.uk-visible\@l {
    align-items: center;
}

.ap-topbar-button,
a.ap-topbar-button,
button.ap-topbar-button {
    align-self: center;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.customer-footer__inner {
    gap: 1.35rem;
    padding: 1.15rem 1.35rem;
}

.customer-footer__col {
    min-width: 0;
}

.customer-footer__col--logo {
    padding-right: .35rem;
}

.customer-footer__col--address {
    padding-right: .75rem;
}

.customer-footer__col--note {
    padding-left: .75rem;
}

@media (min-width: 768px) {
    .customer-footer__inner {
        column-gap: 2rem;
        row-gap: 0;
    }

    .customer-footer__col--logo {
        padding-right: .75rem;
    }

    .customer-footer__col--address {
        padding-left: .25rem;
        padding-right: 1rem;
    }

    .customer-footer__col--note {
        padding-left: 1rem;
    }
}


/* v113: footer note right spacing fix */
.customer-footer__inner {
    padding-right: 1.75rem;
}

.customer-footer__col--note {
    padding-right: .5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .customer-footer__inner {
        padding-right: 2rem;
    }

    .customer-footer__col--note {
        padding-left: 1rem;
        padding-right: .85rem;
        justify-self: stretch;
    }
}


/* v114: project page section spacing */
.ap-project-section {
    margin-bottom: 1.5rem;
}

.ap-project-section:last-child {
    margin-bottom: 0;
}

.ap-project-header {
    padding-bottom: .15rem;
}

.ap-project-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.ap-project-header h1 {
    margin-bottom: 0;
}

.ap-project-header .alert,
.ap-project-header .ap-card {
    margin: 0 !important;
}

.ap-project-richtext {
    margin-top: 0 !important;
}

.ap-project-toolbar {
    margin-top: 0;
}

.ap-project-toolbar form {
    row-gap: .9rem;
}

.ap-project-media-grid {
    row-gap: 1rem;
}

.ap-project-meta-card .ap-muted {
    gap: .55rem !important;
}

@media (max-width: 767.98px) {
    .ap-project-section {
        margin-bottom: 1.15rem;
    }

    .ap-project-header > div:first-child {
        gap: .75rem;
    }
}


/* v115: project page meta spacing + clearer media card content */
.ap-project-section + .ap-project-meta-card {
    margin-top: 1.75rem;
}

.ap-project-meta-card {
    padding: 1rem 1.1rem !important;
}

.ap-project-meta-card .ap-muted {
    gap: .55rem !important;
}

.ap-project-meta-card .ap-muted > div {
    padding-top: .15rem;
}

.ap-project-media-grid {
    row-gap: 1rem;
}

.ap-media-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-media-card__content {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.ap-media-card__header {
    padding-bottom: .7rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.ap-media-card__details {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ap-media-card__meta-line,
.ap-media-card__meta-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ap-media-card__meta-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    line-height: 1.2;
}

.ap-media-card__meta-value,
.ap-media-card__description {
    font-size: .875rem;
    line-height: 1.55;
    color: #111827;
}

.ap-media-card__description {
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .85rem;
    padding: .75rem .85rem;
}

.ap-media-card__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.ap-media-card__footer {
    padding-top: .8rem;
    border-top: 1px solid rgba(0,0,0,.08);
}

.ap-media-card .alert {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .ap-project-section + .ap-project-meta-card {
        margin-top: 1.35rem;
    }

    .ap-media-card {
        gap: .85rem;
    }

    .ap-media-card__description {
        padding: .7rem .8rem;
    }
}

/* v116: stronger project meta block + clearer media card structure */
.ap-project-section + .ap-project-meta-card {
    margin-top: 2.35rem;
}

.ap-project-meta-card {
    padding: 1.15rem 1.2rem !important;
    border-color: rgba(0,0,0,.12);
}

.ap-project-meta-card__header {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.ap-project-meta-list {
    display: grid;
    gap: .7rem;
}

.ap-project-meta-item {
    display: grid;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    padding: .15rem 0;
}

.ap-project-meta-item + .ap-project-meta-item {
    padding-top: .8rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

.ap-project-meta-item__label {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    line-height: 1.35;
}

.ap-project-meta-item__value {
    color: #111827;
    line-height: 1.6;
    word-break: break-word;
}

.ap-project-meta-item__value a {
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.18);
}

.ap-project-meta-item__value a:hover {
    border-bottom-color: #ED7103;
}

.ap-project-meta-item--notice {
    padding: .95rem 1rem;
    border: 1px solid rgba(237,113,3,.28);
    border-radius: 1rem;
    background: #fff7ef;
}

.ap-project-meta-item--notice + .ap-project-meta-item {
    border-top: 0;
}

.ap-project-meta-separator {
    color: #9ca3af;
}

.ap-media-card {
    gap: .9rem;
    padding: 1rem !important;
}

.ap-media-card__content {
    gap: .9rem;
}

.ap-media-card__header {
    gap: .55rem;
    padding-bottom: .8rem;
}

.ap-media-card__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    line-height: 1.2;
}

.ap-media-card__title-row {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    width: 100%;
}

.ap-media-card__title {
    font-size: .98rem;
    line-height: 1.45;
}

.ap-media-card__status-row {
    width: 100%;
}

.ap-media-card__details {
    gap: .85rem;
}

.ap-media-card__info-list {
    display: grid;
    gap: .6rem;
}

.ap-media-card__info-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
    padding: .55rem .7rem;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: .9rem;
    background: #fafafa;
}

.ap-media-card__meta-group {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ap-media-card__meta-group--keywords {
    padding-top: .1rem;
}

.ap-media-card__keywords {
    gap: .42rem;
}

.ap-media-card__keywords .badge {
    background: #fff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

.ap-media-card__description {
    padding: .85rem .95rem;
    background: #f9fafb;
    border-color: rgba(0,0,0,.08);
}

.ap-media-card__footer {
    gap: .75rem !important;
    padding-top: .9rem;
}

.ap-media-card__footer .form-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .55rem .75rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .9rem;
    background: #fafafa;
}

.ap-media-card__footer .form-check-input {
    margin-top: 0;
}

.ap-media-card__footer .d-flex.gap-2.flex-wrap {
    gap: .55rem !important;
}

@media (min-width: 768px) {
    .ap-media-card__title-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .ap-media-card__status-row {
        width: auto;
        justify-content: flex-end;
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .ap-project-section + .ap-project-meta-card {
        margin-top: 1.8rem;
    }

    .ap-project-meta-item,
    .ap-media-card__info-item {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
}


/* v117: clarify media footer controls and completed state */
.ap-badge-completed {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.ap-badge-locked {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #9ca3af !important;
}

.ap-media-card__control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .8rem .95rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1rem;
    background: #fafafa;
}

.ap-media-card__approval-form {
    margin: 0;
}

.ap-media-card__toggle-pill.form-check {
    margin: 0;
    padding: .2rem 0;
    border: 0;
    background: transparent;
}

.ap-media-card__toggle-pill .form-check-label {
    font-size: .82rem;
    font-weight: 700;
    color: #111827;
}

.ap-media-card__state-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ap-media-card__actions {
    padding-top: .1rem;
}

.ap-media-card__actions .btn {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .ap-media-card__control-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ap-media-card__state-badges {
        justify-content: flex-start;
    }
}


/* password toggle / login form alignment */
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; min-width: 0; }
.input-group > .ap-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: var(--ap-control-height);
  width: var(--ap-control-height);
  min-height: var(--ap-control-height);
  height: var(--ap-control-height);
  padding: 0;
  border-left: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.input-group > .form-control + .ap-password-toggle { margin-left: 0; }
.input-group > .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.ap-password-toggle .uk-icon { width: 16px; height: 16px; }
.ap-password-toggle[aria-pressed="true"] { background-color: #f3f4f6; color: #000; border-color: #9ca3af; }
.ap-auth-card .input-group, .ap-card .input-group { margin-top: .35rem; }
.ap-auth-form .form-label { margin-bottom: .4rem; }
.ap-auth-form .mb-3 { margin-bottom: 1rem !important; }
.ap-auth-form .btn.ap-btn-primary { width: 100%; justify-content: center; }

/* v119: global form control system */
:root {
    --ap-field-height: 42px;
    --ap-field-radius: 14px;
    --ap-field-padding-x: .9rem;
    --ap-field-font-size: .9375rem;
    --ap-field-border: #c4c7cf;
    --ap-field-border-focus: #ED7103;
    --ap-field-bg: #ffffff;
    --ap-field-text: #000000;
    --ap-field-shadow-focus: 0 0 0 3px rgba(237,113,3,.14);
    --ap-form-gap: .95rem;
    --ap-label-gap: .4rem;
}

form {
    --ap-local-form-gap: var(--ap-form-gap);
}

.form-label,
label {
    display: inline-block;
    margin-bottom: var(--ap-label-gap);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: var(--ap-field-height);
    height: var(--ap-field-height);
    padding: 0 var(--ap-field-padding-x);
    border-radius: var(--ap-field-radius);
    border: 1px solid var(--ap-field-border) !important;
    background: var(--ap-field-bg) !important;
    color: var(--ap-field-text);
    font-size: var(--ap-field-font-size);
    line-height: 1.2;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

textarea,
textarea.form-control {
    min-height: 120px;
    height: auto;
    padding-top: .75rem;
    padding-bottom: .75rem;
    line-height: 1.45;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--ap-field-border-focus) !important;
    box-shadow: var(--ap-field-shadow-focus) !important;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > input,
.input-group > select {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .ap-password-toggle,
.input-group > .btn,
.input-group > button {
    flex: 0 0 auto;
    min-width: var(--ap-field-height);
    width: var(--ap-field-height);
    height: var(--ap-field-height);
    min-height: var(--ap-field-height);
    padding: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
    align-self: stretch;
}

.ap-password-toggle {
    background: #fff !important;
    color: #000 !important;
    border-color: var(--ap-field-border) !important;
}

.ap-password-toggle:hover,
.ap-password-toggle:focus {
    background: rgba(237,113,3,.08) !important;
    color: #000 !important;
    border-color: var(--ap-field-border-focus) !important;
}

.ap-password-toggle .uk-icon {
    width: 16px;
    height: 16px;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: .2rem;
}

.form-check-label {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: var(--ap-local-form-gap) !important;
}

.d-grid > .btn,
.d-grid > button,
.d-grid > a.btn {
    width: 100%;
    justify-content: center;
}

.ap-auth-card form {
    width: 100%;
}

.ap-auth-form,
.ap-auth-card {
    --ap-local-form-gap: 1rem;
}

.ap-auth-form .text-center,
.ap-auth-card .text-center {
    margin-top: .2rem;
}


/* v120: global section spacing system */
:root {
    --ap-section-space-xs: .75rem;
    --ap-section-space-sm: 1rem;
    --ap-section-space-md: 1.4rem;
    --ap-section-space-lg: 1.9rem;
    --ap-section-space-xl: 2.5rem;
}

.ap-main {
    --ap-page-section-space: var(--ap-section-space-lg);
    --ap-page-section-space-tight: var(--ap-section-space-md);
}

.ap-section,
.ap-page-section,
.ap-card-section,
.ap-block-section {
    margin-bottom: var(--ap-page-section-space);
}

.ap-section--tight,
.ap-page-section--tight,
.ap-card-section--tight,
.ap-block-section--tight {
    margin-bottom: var(--ap-page-section-space-tight);
}

.ap-section:last-child,
.ap-page-section:last-child,
.ap-card-section:last-child,
.ap-block-section:last-child {
    margin-bottom: 0;
}

.ap-stack > * + *,
.ap-section-stack > * + * {
    margin-top: var(--ap-page-section-space-tight);
}

.ap-main > .container > * + *,
.ap-main > .uk-container > * + * {
    margin-top: var(--ap-page-section-space);
}

.ap-main > .container > .row + .row,
.ap-main > .uk-container > .row + .row,
.ap-main > .container > .ap-card + .ap-card,
.ap-main > .uk-container > .ap-card + .ap-card,
.ap-main > .container > .card + .card,
.ap-main > .uk-container > .card + .card,
.ap-main > .container > .table-responsive + .table-responsive,
.ap-main > .uk-container > .table-responsive + .table-responsive,
.ap-main > .container > form + form,
.ap-main > .uk-container > form + form,
.ap-main > .container > .alert + .alert,
.ap-main > .uk-container > .alert + .alert,
.ap-main > .container > .uk-alert + .uk-alert,
.ap-main > .uk-container > .uk-alert + .uk-alert {
    margin-top: var(--ap-page-section-space);
}

.ap-card > * + *,
.card > * + *,
.uk-card > * + * {
    margin-top: var(--ap-page-section-space-tight);
}

.ap-card > .table-responsive:first-child,
.card > .table-responsive:first-child,
.uk-card > .table-responsive:first-child,
.ap-card > .row:first-child,
.card > .row:first-child,
.uk-card > .row:first-child {
    margin-top: 0;
}

.ap-card > h1 + *,
.ap-card > h2 + *,
.ap-card > h3 + *,
.ap-card > h4 + *,
.card > h1 + *,
.card > h2 + *,
.card > h3 + *,
.card > h4 + *,
.uk-card > h1 + *,
.uk-card > h2 + *,
.uk-card > h3 + *,
.uk-card > h4 + * {
    margin-top: var(--ap-section-space-sm);
}

form > .row + .row,
form > .mb-3 + .mb-3,
form > .mb-3 + .row,
form > .row + .mb-3 {
    margin-top: var(--ap-page-section-space-tight);
}

@media (max-width: 767.98px) {
    .ap-main {
        --ap-page-section-space: var(--ap-section-space-md);
        --ap-page-section-space-tight: var(--ap-section-space-sm);
    }
}


/* Admin settings structure */
.ap-settings-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--ap-page-section-space);
    align-items: start;
}

.ap-settings-nav {
    position: sticky;
    top: 1.25rem;
}

.ap-settings-nav__title {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ap-muted);
    margin-bottom: .9rem;
}

.ap-settings-nav__link {
    display: block;
    padding: .78rem .95rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.ap-settings-nav__link + .ap-settings-nav__link {
    margin-top: .75rem;
}

.ap-settings-nav__link:hover,
.ap-settings-nav__link:focus {
    border-color: #000;
    color: #000;
    background: #fff;
}

.ap-settings-help {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ap-border);
}

.ap-settings-help__label,
.ap-settings-section__eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ap-muted);
}

.ap-settings-content > * + * {
    margin-top: var(--ap-page-section-space);
}

.ap-settings-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid var(--ap-border);
}

.ap-settings-group + .ap-settings-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ap-border);
}

.ap-settings-group__title {
    margin-bottom: 1rem;
}

.ap-settings-upload-card {
    border: 1px solid var(--ap-border);
    border-radius: 1rem;
    padding: 1.15rem;
    background: #fff;
}

.ap-settings-upload-card > * + * {
    margin-top: .9rem;
}

.ap-settings-upload-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.ap-settings-preview {
    min-height: 152px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
}

.ap-settings-preview--large {
    min-height: 220px;
}

.ap-settings-preview img {
    display: block;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .ap-settings-layout {
        grid-template-columns: 1fr;
    }

    .ap-settings-nav {
        position: static;
    }
}


/* v122: dashboard facts cleaner formatting */
.ap-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.ap-dashboard-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 152px;
    padding: 1.1rem 1.15rem;
}

.ap-dashboard-stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.ap-dashboard-stat-card__label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ap-muted);
}

.ap-dashboard-stat-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: var(--ap-badge-height);
    padding: .15rem .65rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #000;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ap-dashboard-stat-card__value {
    font-size: clamp(2rem, 2.4vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    color: #000;
    margin-bottom: .6rem;
}

.ap-dashboard-stat-card__meta {
    font-size: .92rem;
    line-height: 1.45;
    color: var(--ap-muted);
}

@media (max-width: 1399.98px) {
    .ap-dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ap-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ap-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .ap-dashboard-stat-card {
        min-height: 0;
    }
}
