

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


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    overflow-x: hidden;
}



.layout {
    display: flex;

    width: 100%;

    min-height: 100vh;
}




.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 280px;
    height: 100vh;

    display:flex;
    flex-direction: column;

    padding: 30px 18px;

    background: linear-gradient(
        180deg,
        #0d304c 0%,
        #123f60 100%
    );

    color: white;

    z-index: 1000;
}


.logo {
    width: 100%;

    text-align: center;

    margin-bottom: 40px;
}


.logo-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    font-size: 25px;

    background: rgba(255,255,255,.10);

    border-radius: 10px;
}


.logo-text {
    display: flex;

    flex-direction: column;

    line-height: 1.3;
}


.logo-text span {
    font-size: 13px;

    color: #dbeafe;
}


.logo-text strong {
    margin-top: 3px;

    font-size: 20px;

    color: white;
}




.menu {
    display: flex;

    flex-direction: column;

    gap: 7px;

    width: 100%;
}


.menu-item {
    display: flex;

    align-items: center;

    width: 100%;
    height: 48px;

    padding: 0 15px;

    gap: 12px;

    color: #e8f2fa;

    text-decoration: none;

    border-radius: 11px;

    font-size: 15px;

    transition: .2s ease;
}


.menu-item span {
    width: 24px;

    text-align: center;

    font-size: 17px;
}


.menu-item p {
    margin: 0;

    font-size: 15px;
}


.menu-item:hover {
    background: rgba(255,255,255,.10);

    transform: translateX(2px);
}


.menu-item.active {
    background: rgba(255,255,255,.17);

    color: white;

    font-weight: 600;
}




.user-box {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 20px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    min-height: 76px;

    background: rgba(255,255,255,.10);

    border-radius: 14px;
}


.user-avatar {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #dbeafe;

    color: #123f60;

    border-radius: 50%;

    font-size: 17px;

    font-weight: 700;
}


.user-info {
    min-width: 0;

    flex: 1;
}


.user-info strong {
    display: block;

    color: white;

    font-size: 14px;
}


.user-info small {
    display: block;

    margin-top: 4px;

    color: #dbeafe;

    font-size: 11px;

    white-space: nowrap;
}




.content {
    width: calc(100% - 280px);

    min-height: 100vh;

    margin-left: 280px;

    padding: 35px;

    overflow: hidden;
}




.topbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    width: 100%;

    margin-bottom: 30px;
}


.topbar h1 {
    color: #102a43;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.2;
}


.topbar p {
    margin-top: 7px;

    color: #64748b;

    font-size: 14px;
}


.top-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}


.notification {
    position: relative;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    border: 1px solid #e8edf3;

    border-radius: 12px;

    font-size: 18px;

    box-shadow: 0 4px 15px rgba(15,42,67,.05);
}


.notification span {
    position: absolute;

    top: -5px;
    right: -5px;

    width: 19px;
    height: 19px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ef4444;

    color: white;

    border-radius: 50%;

    font-size: 10px;

    font-weight: 700;
}


.date {
    display: flex;

    flex-direction: column;

    padding: 9px 14px;

    background: white;

    border: 1px solid #e8edf3;

    border-radius: 11px;

    box-shadow: 0 4px 15px rgba(15,42,67,.05);
}


.date strong {
    color: #334155;

    font-size: 13px;
}


.date small {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 11px;
}




.cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;

    margin-bottom: 25px;
}


.card {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 17px;

    min-width: 0;

    min-height: 155px;

    padding: 23px;

    background: white;

    border: 1px solid #edf1f5;

    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(15,42,67,.06);

    overflow: hidden;

    transition: .2s ease;
}


.card:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 28px rgba(15,42,67,.10);
}


.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background: #2563eb;
}


.card.green::before {
    background: #16a34a;
}


.card.yellow::before {
    background: #eab308;
}


.card.purple::before {
    background: #7c3aed;
}


.card-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 12px;

    font-size: 21px;
}


.card.green .card-icon {
    background: #ecfdf5;
}


.card.yellow .card-icon {
    background: #fffbeb;
}


.card.purple .card-icon {
    background: #faf5ff;
}


.card span {
    display: block;

    color: #64748b;

    font-size: 14px;
}


.card h2 {
    margin-top: 9px;

    color: #102a43;

    font-size: 30px;

    font-weight: 700;
}


.card small {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 12px;
}




.grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 20px;

    width: 100%;

    margin-bottom: 20px;
}


.panel {
    min-width: 0;

    padding: 22px;

    background: white;

    border: 1px solid #edf1f5;

    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(15,42,67,.06);
}


.panel-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}


.panel-header h2 {
    color: #102a43;

    font-size: 18px;
}


.panel-header button,
.panel-link {
    padding: 7px 12px;

    border: none;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 8px;

    font-size: 12px;

    cursor: pointer;

    text-decoration: none;
}


.panel-header button:hover,
.panel-link:hover {
    background: #dbeafe;
}



.levels {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 40px;

    min-height: 210px;
}


.donut {
    position: relative;

    width: 170px;
    height: 170px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #2563eb 0deg 220deg,
            #16a34a 220deg 310deg,
            #eab308 310deg 360deg
        );
}


.donut::before {
    content: "";

    position: absolute;

    width: 112px;
    height: 112px;

    background: white;

    border-radius: 50%;
}


.donut > div {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.donut strong {
    color: #102a43;

    font-size: 28px;
}


.donut span {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 12px;
}


.legend {
    display: flex;

    flex-direction: column;

    gap: 15px;

    min-width: 170px;
}


.legend > div {
    display: grid;

    grid-template-columns: 12px 1fr;

    column-gap: 8px;
}


.legend i {
    width: 10px;
    height: 10px;

    margin-top: 4px;

    border-radius: 50%;

    background: #2563eb;
}


.legend i.medium {
    background: #16a34a;
}


.legend i.low {
    background: #eab308;
}


.legend i.critical {
    background: #ef4444;
}


.legend span {
    color: #64748b;

    font-size: 12px;
}


.legend strong {
    grid-column: 2;

    margin-top: 2px;

    color: #334155;

    font-size: 12px;
}



.table {
    width: 100%;
}


.table-head,
.table-row {
    display: grid;

    grid-template-columns:
        1.1fr
        1.1fr
        .6fr
        1fr;

    align-items: center;

    gap: 12px;
}


.table-head {
    padding: 11px 12px;

    background: #f8fafc;

    border-radius: 8px;

    color: #64748b;

    font-size: 11px;

    font-weight: 600;
}


.table-row {
    padding: 15px 12px;

    border-bottom: 1px solid #edf2f7;

    color: #334155;

    font-size: 12px;
}


.table-row:last-child {
    border-bottom: none;
}


.level-blue {
    color: #2563eb;

    font-weight: 700;
}



.alert {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 13px;

    margin-bottom: 10px;

    background: #f8fafc;

    border: 1px solid #edf2f7;

    border-radius: 11px;
}


.alert-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
}


.alert-icon.red {
    background: #fee2e2;

    color: #dc2626;
}


.alert > div:nth-child(2) {
    flex: 1;

    min-width: 0;
}


.alert strong {
    display: block;

    color: #334155;

    font-size: 13px;
}


.alert p {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 11px;
}


.alert time {
    color: #94a3b8;

    font-size: 11px;
}



.location-box {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #f8fafc;

    border-radius: 12px;
}


.location-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 12px;

    font-size: 21px;
}


.location-box strong {
    display: block;

    color: #102a43;

    font-size: 27px;
}


.location-box span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}


.location-info {
    margin-top: 15px;

    padding: 15px;

    background: #f8fafc;

    border-left: 3px solid #2563eb;

    border-radius: 7px;
}


.location-info p {
    color: #64748b;

    font-size: 12px;

    line-height: 1.6;
}


.empty {
    padding: 30px 10px;

    text-align: center;

    color: #94a3b8;

    font-size: 13px;
}




.summary-panel {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    width: 100%;

    margin-top: 5px;

    padding: 25px;

    background: linear-gradient(
        135deg,
        #123f60,
        #185277
    );

    color: white;

    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(15,42,67,.12);
}


.summary-panel > div:first-child span {
    color: #bfdbfe;

    font-size: 12px;
}


.summary-panel h2 {
    margin-top: 7px;

    color: white;

    font-size: 21px;
}


.summary-items {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(80px, 1fr));

    gap: 28px;
}


.summary-items > div {
    text-align: center;
}


.summary-items strong {
    display: block;

    color: white;

    font-size: 23px;
}


.summary-items span {
    display: block;

    margin-top: 4px;

    color: #bfdbfe;

    font-size: 11px;
}




.cisternas-page {
    min-height: 100vh;
}


.page-top {
    margin-bottom: 18px;
}


.page-label {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 12px;
}


.page-top h1 {
    margin: 0;

    color: #111827;

    font-size: 23px;

    font-weight: 700;
}


.cisterna-toolbar {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;
}


.cisterna-search {
    display: flex;

    align-items: center;

    width: 280px;

    height: 36px;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 4px;

    overflow: hidden;
}


.cisterna-search span {
    padding-left: 10px;

    color: #94a3b8;

    font-size: 15px;
}


.cisterna-search input {
    width: 100%;

    height: 100%;

    padding: 0 10px;

    border: none;

    outline: none;

    background: transparent;

    color: #374151;

    font-size: 11px;
}


.cisterna-search input::placeholder {
    color: #a0a8b1;
}


.btn-cadastrar {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 36px;

    padding: 0 14px;

    background: #1683d8;

    color: #ffffff;

    border-radius: 4px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;
}


.btn-cadastrar:hover {
    background: #0f70bd;
}


.cisterna-box {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 6px;

    overflow: hidden;
}


.box-title {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 15px 16px;

    color: #111827;

    font-size: 13px;

    border-bottom: 1px solid #e5e7eb;
}


.box-icon {
    color: #1683d8;

    font-size: 15px;
}


.cisterna-table {
    width: 100%;
}


.cisterna-table-head,
.cisterna-table-row {
    display: grid;

    grid-template-columns:
        1.2fr
        1.1fr
        1.2fr
        .8fr;

    align-items: center;

    gap: 18px;

    padding: 0 16px;
}


.cisterna-table-head {
    min-height: 42px;

    background: #f8fafc;

    color: #64748b;

    font-size: 10px;

    font-weight: 600;
}


.cisterna-table-row {
    min-height: 56px;

    border-bottom: 1px solid #edf2f7;

    color: #475569;

    font-size: 11px;
}


.cisterna-table-row:hover {
    background: #f8fafc;
}


.cisterna-table-row strong {
    color: #1e3a5f;

    font-weight: 700;
}


.row-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}


.action-edit,
.action-delete {
    text-decoration: none;

    font-size: 10px;

    font-weight: 600;
}


.action-edit {
    color: #1683d8;
}


.action-delete {
    color: #dc2626;
}


.action-edit:hover,
.action-delete:hover {
    text-decoration: underline;
}


.no-cisternas {
    padding: 35px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}



.figma-cisterna-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 6px;

    overflow: hidden;

    margin-bottom: 18px;
}


.figma-section-title {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 17px 20px;

    border-bottom: 1px solid #e5e7eb;
}


.figma-section-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #1683d8;

    border-radius: 5px;

    font-size: 16px;
}


.figma-section-title strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
}


.figma-section-title p {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}


.figma-form-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    padding: 22px 20px;
}


.figma-field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.figma-field label {
    margin-bottom: 6px;

    color: #334155;

    font-size: 11px;

    font-weight: 600;
}


.figma-field label span {
    color: #ef4444;
}


.figma-field input,
.figma-field select {
    width: 100%;

    height: 36px;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #d1d5db;

    border-radius: 3px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 11px;
}


.figma-field input:focus,
.figma-field select:focus {
    border-color: #1683d8;

    box-shadow:
        0 0 0 2px rgba(22, 131, 216, 0.08);
}


.figma-field input::placeholder {
    color: #a0a8b1;
}


.figma-field small {
    margin-top: 5px;

    color: #dc2626;

    font-size: 9px;
}


.js-form-error,
.figma-error {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-bottom: 15px;

    padding: 11px 14px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: 4px;

    color: #b91c1c;

    font-size: 10px;
}


.js-form-error strong,
.figma-error strong {
    font-size: 11px;
}


.figma-form-footer,
.form-final-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    padding: 12px 20px;

    background: #f8fafc;

    border-top: 1px solid #e5e7eb;
}


.btn-cancel {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 34px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 3px;

    color: #475569;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;
}


.btn-cancel:hover {
    background: #f1f5f9;
}


.btn-figma-save,
.btn-save {
    height: 34px;

    padding: 0 16px;

    border: none;

    border-radius: 3px;

    background: #1683d8;

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;
}


.btn-figma-save:hover,
.btn-save:hover {
    background: #0f70bd;
}



.situacao-preview {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 6px;

    color: #64748b;

    font-size: 9px;
}


.situacao-preview span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #cbd5e1;
}


.situacao-preview.normal span {
    background: #22c55e;
}


.situacao-preview.atencao span {
    background: #eab308;
}


.situacao-preview.critico span {
    background: #ef4444;
}


.situacao-preview.sem_dados span {
    background: #cbd5e1;
}




.visual-card {
    width: 100%;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 6px;

    margin-bottom: 18px;
}


.visual-card-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}


.visual-card-title span {
    color: #334155;

    font-size: 12px;

    font-weight: 600;
}


.visual-card-title small {
    color: #94a3b8;

    font-size: 9px;
}


.image-preview-area {
    position: relative;

    width: 100%;

    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    border: 1px dashed #cbd5e1;

    border-radius: 5px;

    overflow: hidden;
}


.image-preview-area img {
    display: block;

    width: 100%;

    max-height: 280px;

    object-fit: contain;
}


.image-empty {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.image-empty span {
    font-size: 27px;

    margin-bottom: 6px;
}


.image-empty p {
    color: #94a3b8;

    font-size: 10px;
}


.remove-image {
    margin-top: 9px;

    height: 30px;

    padding: 0 11px;

    border: 1px solid #fecaca;

    border-radius: 3px;

    background: #ffffff;

    color: #dc2626;

    font-family: inherit;

    font-size: 9px;

    cursor: pointer;
}


.remove-image:hover {
    background: #fef2f2;
}



.map-card {
    width: 100%;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 6px;

    margin-bottom: 18px;
}


.map-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}


.map-title span {
    color: #334155;

    font-size: 12px;

    font-weight: 600;
}


.map-title small {
    color: #94a3b8;

    font-size: 9px;
}


.map-content {
    display: grid;

    grid-template-columns: 1fr 170px;

    gap: 15px;
}


.fake-map {
    position: relative;

    min-height: 260px;

    overflow: hidden;

    border: 1px solid #dbe3ea;

    border-radius: 4px;

    background:
        linear-gradient(
            25deg,
            transparent 47%,
            rgba(255,255,255,.8) 48%,
            rgba(255,255,255,.8) 52%,
            transparent 53%
        ),
        linear-gradient(
            160deg,
            transparent 44%,
            rgba(255,255,255,.8) 45%,
            rgba(255,255,255,.8) 48%,
            transparent 49%
        ),
        #dce8d9;
}


.map-road {
    position: absolute;

    background: #ffffff;

    opacity: .85;

    border-radius: 20px;
}


.road-one {
    width: 115%;

    height: 12px;

    left: -5%;

    top: 25%;

    transform: rotate(10deg);
}


.road-two {
    width: 110%;

    height: 9px;

    left: -5%;

    top: 58%;

    transform: rotate(-13deg);
}


.road-three {
    width: 8px;

    height: 120%;

    left: 42%;

    top: -10%;

    transform: rotate(23deg);
}


.road-four {
    width: 7px;

    height: 110%;

    right: 23%;

    top: -8%;

    transform: rotate(-18deg);
}


.map-water {
    position: absolute;

    width: 130px;
    height: 75px;

    right: 7%;

    bottom: 7%;

    background: #93c5fd;

    border-radius: 50%;

    opacity: .55;
}


.map-marker {
    position: absolute;

    display: none;

    align-items: center;

    justify-content: center;

    transform: translate(-50%, -50%);

    z-index: 5;

    font-size: 26px;

    filter: drop-shadow(
        0 2px 2px rgba(0,0,0,.2)
    );
}


.map-message {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #64748b;

    font-size: 11px;
}



.map-legend {
    padding: 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 4px;
}


.map-legend h3 {
    margin-bottom: 12px;

    color: #334155;

    font-size: 10px;
}


.legend-item {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 10px;

    color: #64748b;

    font-size: 9px;
}


.legend-item:last-child {
    margin-bottom: 0;
}


.legend-item i {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.legend-item i.normal {
    background: #22c55e;
}


.legend-item i.atencao {
    background: #eab308;
}


.legend-item i.critico {
    background: #ef4444;
}


.legend-item i.sem-dados {
    background: #cbd5e1;
}




.current-image {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding: 0 20px 20px;
}


.current-image span {
    color: #64748b;

    font-size: 9px;

    font-weight: 600;
}


.current-image img {
    width: 170px;

    max-height: 130px;

    object-fit: cover;

    border-radius: 4px;

    border: 1px solid #dbe3ea;
}




.usuarios-page {
    min-height: 100vh;

    background: #f4f7fb;
}


.usuarios-page .page-top {
    margin-bottom: 20px;
}


.usuarios-page .page-top p {
    margin-top: 6px;

    color: #64748b;

    font-size: 12px;
}


.usuarios-toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}


.usuarios-search {
    display: flex;

    align-items: center;

    width: 280px;

    height: 36px;

    background: #ffffff;

    border: 1px solid #d9e0e7;

    border-radius: 4px;
}


.usuarios-search span {
    padding-left: 10px;

    color: #94a3b8;

    font-size: 16px;
}


.usuarios-search input {
    width: 100%;

    height: 100%;

    padding: 0 10px;

    border: none;

    outline: none;

    background: transparent;

    color: #334155;

    font-family: inherit;

    font-size: 12px;
}


.usuarios-search input::placeholder {
    color: #a0a8b1;
}


.btn-usuario-cadastrar {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 36px;

    padding: 0 15px;

    background: #1683d8;

    color: #ffffff;

    border-radius: 4px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    transition: 0.2s ease;
}


.btn-usuario-cadastrar:hover {
    background: #0f70bd;
}


.usuarios-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 5px;

    overflow: hidden;
}


.usuarios-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid #e5e7eb;
}


.usuarios-card-header strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
}


.usuarios-card-header span {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 10px;
}


.usuarios-total {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 28px;

    height: 28px;

    padding: 0 8px;

    background: #eff6ff;

    color: #1683d8;

    border-radius: 4px;

    font-size: 11px;

    font-weight: 700;
}


.usuarios-table-head,
.usuario-row {
    display: grid;

    grid-template-columns:
        1.5fr
        1.4fr
        1.2fr
        .7fr;

    align-items: center;

    gap: 18px;

    padding: 0 18px;
}


.usuarios-table-head {
    min-height: 40px;

    background: #f8fafc;

    color: #64748b;

    font-size: 10px;

    font-weight: 600;
}


.usuario-row {
    min-height: 62px;

    border-top: 1px solid #edf1f5;

    color: #475569;

    font-size: 11px;
}


.usuario-row:hover {
    background: #f8fafc;
}


.usuario-identidade {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.usuario-identidade .usuario-avatar {
    width: 34px;

    height: 34px;

    background: #e0effb;

    color: #1683d8;

    font-size: 12px;
}


.usuario-identidade strong {
    display: block;

    color: #1e3a5f;

    font-size: 11px;
}


.usuario-identidade small {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 9px;
}


.usuario-email {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.perfil-badge {
    display: inline-flex;

    align-items: center;

    min-height: 22px;

    padding: 0 8px;

    background: #eff6ff;

    color: #2563eb;

    border: 1px solid #bfdbfe;

    border-radius: 3px;

    font-size: 9px;

    font-weight: 600;
}


.perfil-badge.admin {
    background: #f3e8ff;

    color: #7c3aed;

    border-color: #ddd6fe;
}


.perfil-badge.vazio {
    background: #f1f5f9;

    color: #64748b;

    border-color: #e2e8f0;
}


.status-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 45px;

    min-height: 22px;

    padding: 0 7px;

    border-radius: 3px;

    font-size: 9px;

    font-weight: 600;
}


.status-badge.ativo {
    background: #dcfce7;

    color: #15803d;
}


.status-badge.inativo {
    background: #fee2e2;

    color: #dc2626;
}


.usuarios-empty {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 220px;

    text-align: center;
}


.usuarios-empty > span {
    font-size: 25px;

    margin-bottom: 8px;
}


.usuarios-empty strong {
    color: #334155;

    font-size: 13px;
}


.usuarios-empty p {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 10px;
}



.usuario-form-error {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-bottom: 15px;

    padding: 11px 14px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: 4px;

    color: #b91c1c;

    font-size: 10px;
}


.usuario-form-error strong {
    font-size: 11px;
}


.usuario-form-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e7ed;

    border-radius: 5px;

    overflow: hidden;
}


.usuario-form-header {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 17px 20px;

    border-bottom: 1px solid #e5e7eb;
}


.usuario-form-icon {
    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eff6ff;

    color: #1683d8;

    border-radius: 5px;

    font-size: 16px;
}


.usuario-form-header strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
}


.usuario-form-header span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}


.usuario-form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    padding: 22px 20px;
}


.usuario-field {
    display: flex;

    flex-direction: column;
}


.usuario-field label {
    margin-bottom: 6px;

    color: #334155;

    font-size: 11px;

    font-weight: 600;
}


.usuario-field label span {
    color: #ef4444;
}


.usuario-field input,
.usuario-field select {
    width: 100%;

    height: 36px;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #d1d5db;

    border-radius: 3px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 11px;
}


.usuario-field input:focus,
.usuario-field select:focus {
    border-color: #1683d8;

    box-shadow:
        0 0 0 2px rgba(22, 131, 216, 0.08);
}


.usuario-field input::placeholder {
    color: #a0a8b1;
}


.usuario-field small {
    margin-top: 5px;

    color: #dc2626;

    font-size: 9px;
}


.usuario-info-box {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin: 0 20px 20px;

    padding: 11px 12px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 4px;
}


.usuario-info-box > span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 20px;
    height: 20px;

    flex-shrink: 0;

    background: #dcfce7;

    color: #15803d;

    border-radius: 50%;

    font-size: 9px;

    font-weight: 700;
}


.usuario-info-box strong {
    display: block;

    color: #334155;

    font-size: 10px;
}


.usuario-info-box p {
    margin-top: 3px;

    color: #64748b;

    font-size: 9px;
}


.usuario-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    padding: 12px 20px;

    background: #f8fafc;

    border-top: 1px solid #e5e7eb;
}


.btn-usuario-save {
    height: 34px;

    padding: 0 15px;

    border: none;

    border-radius: 3px;

    background: #1683d8;

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;
}


.btn-usuario-save:hover {
    background: #0f70bd;
}


.delete-card {
    width: 100%;

    max-width: 650px;

    margin: 30px auto;

    padding: 38px 40px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    text-align: center;
}


.delete-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    border-radius: 50%;

    color: #ea580c;

    font-size: 22px;
}


.delete-card h2 {
    margin: 0 0 10px;

    color: #102a43;

    font-size: 20px;
}


.delete-message {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


.cisterna-name {
    display: inline-block;

    margin: 16px 0;

    padding: 10px 18px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;
}


.delete-warning {
    margin: 0;

    color: #dc2626;

    font-size: 12px;
}


.delete-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid #e8edf2;
}


.btn-delete-confirm {
    min-height: 40px;

    padding: 0 20px;

    border: none;

    border-radius: 8px;

    background: #dc2626;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.btn-delete-confirm:hover {
    background: #b91c1c;
}


footer {
    width: 100%;

    padding: 25px 0 10px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}



@media (max-width: 1200px) {

    .content {
        padding: 28px;
    }


    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


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


    .figma-form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .sidebar {
        width: 80px;

        padding: 25px 10px;
    }


    .content {
        width: calc(100% - 80px);

        margin-left: 80px;

        padding: 20px;
    }


    .logo-text {
        display: none;
    }


    .logo-icon {
        margin-bottom: 20px;
    }


    .menu-item {
        justify-content: center;

        padding: 0;
    }


    .menu-item p {
        display: none;
    }


    .user-box {
        left: 10px;

        right: 10px;

        justify-content: center;

        padding: 10px;
    }


    .user-info {
        display: none;
    }


    .top-actions {
        display: none;
    }


    .cards {
        grid-template-columns: 1fr;
    }


    .figma-form-grid {
        grid-template-columns: 1fr;
    }


    .map-content {
        grid-template-columns: 1fr;
    }


    .usuarios-form-grid {
        grid-template-columns: 1fr;
    }


    .usuarios-table,
    .cisterna-table {
        overflow-x: auto;
    }


    .usuarios-table-head,
    .usuario-row,
    .cisterna-table-head,
    .cisterna-table-row {
        min-width: 700px;
    }

}


@media (max-width: 600px) {

    .content {
        padding: 15px;
    }


    .topbar h1 {
        font-size: 22px;
    }


    .table {
        overflow-x: auto;
    }


    .table-head,
    .table-row {
        min-width: 550px;
    }


    .summary-panel {
        flex-direction: column;

        align-items: flex-start;
    }


    .summary-items {
        width: 100%;
    }


    .cisterna-toolbar,
    .usuarios-toolbar {
        flex-direction: column;

        align-items: stretch;
    }


    .cisterna-search,
    .usuarios-search {
        width: 100%;
    }


    .btn-cadastrar,
    .btn-usuario-cadastrar {
        width: 100%;
    }


    .form-final-actions,
    .figma-form-footer,
    .usuario-form-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .form-final-actions .btn-cancel,
    .form-final-actions .btn-figma-save,
    .figma-form-footer .btn-cancel,
    .figma-form-footer .btn-figma-save,
    .usuario-form-actions .btn-cancel,
    .usuario-form-actions .btn-usuario-save {
        width: 100%;
    }


    .delete-card {
        margin: 20px 0;

        padding: 30px 20px;
    }


    .delete-actions {
        flex-direction: column;
    }


    .delete-actions .btn-cancel,
    .delete-actions .btn-delete-confirm {
        width: 100%;
    }

}

.sidebar {
    position: relative;
    z-index: 1000;
}

.menu {
    position: relative;
    z-index: 1001;
}

.menu-item {
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    cursor: pointer;
}

.menu-item span,
.menu-item p {
    pointer-events: none;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 30px 18px;
    box-sizing: border-box;
    z-index: 1000;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    padding: 0 15px;
    gap: 12px;
    box-sizing: border-box;
    text-decoration: none;
}

.menu-item span {
    width: 24px;
    flex-shrink: 0;
    text-align: center;
}

.menu-item p {
    margin: 0;
}

.user-box {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    flex-shrink: 0;
}

.sidebar-bottom .user-box {
    position: static;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
}

.sidebar-logout {
    width: 100%;
    margin: 0 !important;
}

.sidebar-logout button {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    color: #183247;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-logout button:hover {
    background: #eaf3fb;
}

.sidebar .menu {
    flex-shrink: 0;
}
.cisternas-form-page {
    color: #183247;
}

.cisternas-form-page .page-top {
    margin-bottom: 26px;
}

.cisternas-form-page .page-label {
    color: #1683d8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cisternas-form-page .page-top h1 {
    color: #123f60;
    font-size: 28px;
    font-weight: 700;
}

.cisternas-form-page #cisternaForm {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: start;
    gap: 22px;
}

.cisternas-form-page .figma-cisterna-card {
    grid-column: 1 / -1;
    margin-bottom: 0;
    border: 1px solid #e2eaf1;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 42, 67, 0.06);
}

.cisternas-form-page .figma-section-title {
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(110deg, #ffffff, #f7fbff);
    border-bottom: 1px solid #e8eef4;
}

.cisternas-form-page .figma-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e7f3ff;
    color: #1683d8;
    font-size: 19px;
}

.cisternas-form-page .figma-section-title strong {
    color: #123f60;
    font-size: 15px;
}

.cisternas-form-page .figma-section-title p {
    color: #7b8b9b;
    font-size: 12px;
}

.cisternas-form-page .figma-form-grid {
    gap: 22px;
    padding: 26px 24px;
}

.cisternas-form-page .figma-field label {
    margin-bottom: 8px;
    color: #344b5e;
    font-size: 12px;
    font-weight: 600;
}

.cisternas-form-page .figma-field input,
.cisternas-form-page .figma-field select {
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d7e1ea;
    border-radius: 9px;
    background: #ffffff;
    color: #243b4d;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cisternas-form-page .figma-field input:hover,
.cisternas-form-page .figma-field select:hover {
    border-color: #9bbbd3;
}

.cisternas-form-page .figma-field input:focus,
.cisternas-form-page .figma-field select:focus {
    border-color: #1683d8;
    box-shadow: 0 0 0 3px rgba(22, 131, 216, 0.12);
    outline: none;
}

.cisternas-form-page .figma-field input::placeholder {
    color: #a0adba;
}

.cisternas-form-page .situacao-preview {
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
}

.cisternas-form-page .situacao-preview span {
    width: 9px;
    height: 9px;
}

.cisternas-form-page .visual-card,
.cisternas-form-page .map-card {
    min-width: 0;
    margin-bottom: 0;
    padding: 22px;
    border: 1px solid #e2eaf1;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 42, 67, 0.06);
}

.cisternas-form-page .visual-card-title,
.cisternas-form-page .map-title {
    gap: 12px;
    margin-bottom: 17px;
}

.cisternas-form-page .visual-card-title span,
.cisternas-form-page .map-title span {
    color: #123f60;
    font-size: 14px;
    font-weight: 700;
}

.cisternas-form-page .visual-card-title small,
.cisternas-form-page .map-title small {
    color: #8292a2;
    font-size: 11px;
}

.cisternas-form-page .image-preview-area {
    min-height: 220px;
    padding: 12px;
    background: #f5f9fc;
    border: 2px dashed #cbdce9;
    border-radius: 12px;
}

.cisternas-form-page .image-preview-area img {
    max-height: 320px;
    border-radius: 8px;
}

.cisternas-form-page .image-empty span {
    margin-bottom: 10px;
    font-size: 38px;
}

.cisternas-form-page .image-empty p {
    color: #7d8fa0;
    font-size: 12px;
    text-align: center;
}

.cisternas-form-page .remove-image {
    height: 36px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 11px;
}

.cisternas-form-page .map-content {
    grid-template-columns: minmax(0, 1fr) 145px;
    gap: 14px;
}

.cisternas-form-page .fake-map {
    min-height: 280px;
    border: 1px solid #d6e3dc;
    border-radius: 12px;
    background-color: #e2eee2;
}

.cisternas-form-page .map-water {
    background: #79bdf0;
    opacity: 0.65;
}

.cisternas-form-page .map-marker {
    font-size: 30px;
}

.cisternas-form-page .map-message {
    padding: 15px;
    color: #536b7b;
    font-size: 12px;
    text-align: center;
}

.cisternas-form-page .map-legend {
    padding: 15px;
    background: #f7fafc;
    border: 1px solid #e4ebf1;
    border-radius: 12px;
}

.cisternas-form-page .map-legend h3 {
    margin-bottom: 15px;
    color: #29465b;
    font-size: 12px;
}

.cisternas-form-page .legend-item {
    gap: 8px;
    margin-bottom: 13px;
    font-size: 10px;
}

.cisternas-form-page .legend-item i {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.cisternas-form-page .current-image {
    padding: 0 24px 22px;
}

.cisternas-form-page .current-image span {
    color: #536b7b;
    font-size: 11px;
}

.cisternas-form-page .current-image img {
    width: 190px;
    max-height: 150px;
    border-radius: 10px;
    border-color: #dce6ee;
}

.cisternas-form-page .form-final-actions,
.cisternas-form-page .figma-form-footer {
    grid-column: 1 / -1;
    gap: 12px;
    padding: 20px 24px;
    background: #f7fafc;
    border: 1px solid #e2eaf1;
    border-radius: 14px;
}

.cisternas-form-page .btn-cancel,
.cisternas-form-page .btn-figma-save,
.cisternas-form-page .btn-save {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 9px;
    font-size: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cisternas-form-page .btn-cancel {
    border-color: #d6e1e9;
    background: #ffffff;
    color: #425b6d;
}

.cisternas-form-page .btn-cancel:hover {
    background: #edf4f8;
}

.cisternas-form-page .btn-figma-save:hover,
.cisternas-form-page .btn-save:hover {
    background: #0f70bd;
    transform: translateY(-1px);
}

.cisternas-form-page .js-form-error,
.cisternas-form-page .figma-error {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 12px;
}

.cisternas-form-page footer {
    color: #8a9aaa;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .cisternas-form-page #cisternaForm {
        grid-template-columns: minmax(0, 1fr);
    }

    .cisternas-form-page .figma-cisterna-card,
    .cisternas-form-page .form-final-actions,
    .cisternas-form-page .figma-form-footer {
        grid-column: 1;
    }

    .cisternas-form-page .map-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .cisternas-form-page .map-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cisternas-form-page .map-legend h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .cisternas-form-page .page-top h1 {
        font-size: 23px;
    }

    .cisternas-form-page .figma-section-title {
        padding: 17px;
    }

    .cisternas-form-page .figma-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        padding: 20px 17px;
    }

    .cisternas-form-page .visual-card,
    .cisternas-form-page .map-card {
        padding: 17px;
    }

    .cisternas-form-page .fake-map {
        min-height: 220px;
    }

    .cisternas-form-page .map-legend {
        grid-template-columns: minmax(0, 1fr);
    }

    .cisternas-form-page .form-final-actions,
    .cisternas-form-page .figma-form-footer {
        padding: 16px;
    }

    .cisternas-form-page .form-final-actions .btn-cancel,
    .cisternas-form-page .form-final-actions .btn-figma-save,
    .cisternas-form-page .figma-form-footer .btn-cancel,
    .cisternas-form-page .figma-form-footer .btn-figma-save {
        width: 100%;
    }
}


.content:has(.panel .alert) .topbar {
    margin-bottom: 28px;
}

.content:has(.panel .alert) .topbar h1 {
    margin: 8px 0;
    color: #15334b;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.content:has(.panel .alert) .topbar p {
    color: #718399;
    font-size: 14px;
    line-height: 1.7;
}

.content:has(.panel .alert) .page-label {
    display: inline-block;
    margin-bottom: 5px;
    color: #2585a5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.content:has(.panel .alert) .panel {
    padding: 30px;
    border: 1px solid #e5edf4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 35px rgba(24, 58, 89, 0.07);
}

.content:has(.panel .alert) .panel-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaf0f5;
}

.content:has(.panel .alert) .panel-header h2 {
    color: #193750;
    font-size: 21px;
    font-weight: 800;
}

.content:has(.panel .alert) .panel form[method="get"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px !important;
    padding: 16px;
    border: 1px solid #e6eef5;
    border-radius: 16px;
    background: #f7fafc;
}

.content:has(.panel .alert) .panel form[method="get"] input[name="q"] {
    flex: 1;
    min-width: 220px;
    height: 46px;
    padding: 0 15px !important;
    border: 1px solid #dce6ef !important;
    border-radius: 11px !important;
    outline: none;
    background: #ffffff;
    color: #243d53;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.content:has(.panel .alert) .panel form[method="get"] input[name="q"]:focus {
    border-color: #3094b5 !important;
    box-shadow: 0 0 0 4px rgba(48, 148, 181, 0.12);
}

.content:has(.panel .alert) .panel form[method="get"] button {
    height: 46px;
    margin: 0 !important;
    padding: 0 22px !important;
    border: none;
    border-radius: 11px;
    background: #176b8b;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.content:has(.panel .alert) .panel form[method="get"] button:hover {
    transform: translateY(-1px);
    background: #10546f;
}

.content:has(.panel .alert) .panel form[method="get"] a {
    padding: 10px 12px;
    border-radius: 9px;
    color: #637c91;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.content:has(.panel .alert) .panel form[method="get"] a:hover {
    background: #eaf2f8;
    color: #176b8b;
}

.content:has(.panel .alert) .panel > .alert {
    position: relative;
    gap: 18px !important;
    margin-bottom: 15px !important;
    padding: 23px !important;
    overflow: hidden;
    border: 1px solid #e5edf4 !important;
    border-radius: 17px !important;
    background: #ffffff;
    box-shadow: 0 4px 13px rgba(26, 56, 83, 0.035);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.content:has(.panel .alert) .panel > .alert:hover {
    transform: translateY(-3px);
    border-color: #cbdde9 !important;
    box-shadow: 0 12px 24px rgba(26, 56, 83, 0.08);
}

.content:has(.panel .alert) .panel > .alert:has(.alert-icon.red) {
    border-left: 4px solid #e34d56 !important;
    background: linear-gradient(105deg, #fff7f7 0%, #ffffff 48%);
}

.content:has(.panel .alert) .panel > .alert:has(.alert-icon.orange) {
    border-left: 4px solid #e5a12c !important;
    background: linear-gradient(105deg, #fffbf2 0%, #ffffff 48%);
}

.content:has(.panel .alert) .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 23px;
}

.content:has(.panel .alert) .alert-icon.red {
    background: #ffeaec;
    color: #d63845;
}

.content:has(.panel .alert) .alert-icon.orange {
    background: #fff1d6;
    color: #bd7a0b;
}

.content:has(.panel .alert) .panel > .alert > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.content:has(.panel .alert) .panel > .alert > div:nth-child(2) > strong {
    margin-bottom: 4px;
    color: #203b52;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.content:has(.panel .alert) .panel > .alert p {
    margin: 0;
    color: #718398;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.content:has(.panel .alert) .panel > .alert p strong {
    color: #415b71;
    font-weight: 700;
}

.content:has(.panel .alert) .panel > .alert > form {
    align-self: center;
}

.content:has(.panel .alert) .panel > .alert > form button {
    min-height: 42px;
    padding: 0 15px !important;
    border: 1px solid #bce6d1 !important;
    border-radius: 11px !important;
    background: #e9f8f0 !important;
    color: #16754d !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.content:has(.panel .alert) .panel > .alert > form button:hover {
    transform: translateY(-1px);
    background: #d2f2e1 !important;
}

.content:has(.panel .alert) .panel > .empty {
    padding: 55px 22px;
    border: 1px dashed #cbdce8;
    border-radius: 18px;
    background: #f8fbfd;
    color: #71869a;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.content:has(.panel .alert) footer {
    margin-top: 28px;
    padding: 20px 10px;
    border-top: 1px solid #e5edf4;
    color: #8a9aab;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .content:has(.panel .alert) .panel {
        padding: 18px;
        border-radius: 16px;
    }

    .content:has(.panel .alert) .topbar h1 {
        font-size: 29px;
    }

    .content:has(.panel .alert) .panel > .alert {
        padding: 17px !important;
        gap: 13px !important;
    }

    .content:has(.panel .alert) .panel > .alert > form {
        width: 100%;
    }

    .content:has(.panel .alert) .panel > .alert > form button {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .content:has(.panel .alert) .panel form[method="get"] {
        padding: 11px;
    }

    .content:has(.panel .alert) .panel form[method="get"] input[name="q"] {
        min-width: 100%;
    }

    .content:has(.panel .alert) .panel form[method="get"] button {
        flex: 1;
    }
}
.alert-icon.green {
    color: #16803c;
    background-color: #dcfce7;
}


.alert-icon.green {
    color: #218739 !important;
    background-color: #dcfce7 !important;
}

.logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo:hover {
    text-decoration: none;
    color: inherit;
}

.sidebar a.logo,
.sidebar a.logo:link,
.sidebar a.logo:visited,
.sidebar a.logo:hover,
.sidebar a.logo:active,
.sidebar a.logo:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: inherit;
}


.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: transparent;
    color: #e8f2fa;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: white;
    text-decoration: none;
}


.menu-title {
    margin-bottom: 12px;
    color: #bfdbfe;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
