main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.detail-view-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}

.detail-view-horizontal .detail-card {
    flex: 1 1 156px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 7px 11px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.detail-view-horizontal .detail-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.detail-view-horizontal .detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    word-break: break-word;
}

@media (max-width: 575px) {
    .detail-view-horizontal {
        gap: 12px;
    }

    .detail-view-horizontal .detail-card {
        flex: 1 1 calc(100% - 10px);
    }
}

.detail-view-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(15, 23, 42, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.detail-view-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.detail-view-card-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.detail-view-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.detail-view-card-actions .btn {
    white-space: nowrap;
}

@media (min-width: 576px) {
    .detail-view-card-actions {
        margin-top: 0;
    }
}

.detail-view-card-body {
    padding: 20px 24px 24px;
}

.detail-view-card .detail-view-horizontal {
    margin-bottom: 0;
}

.grid-section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(15, 23, 42, 0.08);
    margin-bottom: 25px;
}

.grid-section-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.grid-section-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.grid-section-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grid-section-card-actions .btn {
    white-space: nowrap;
}

.grid-section-card-body {
    padding: 0.6rem 1rem;
}

.grid-view table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 15px rgba(15, 23, 42, 0.08);
}

.grid-view thead th {
    background: #bfdbfe;
    color: #0f172a;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    padding: 14px 18px;
}

.grid-view tbody td {
    border-top: 1px solid #e5e7eb;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #1f2937;
}

.grid-view tbody tr:nth-child(even) {
    background: #f9fafb;
}

.grid-view tbody tr:hover {
    background: #eef2ff;
}
