{"version":3,"sources":["../../../../src/nhsuk/core/elements/_table.scss"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,oBAAoB;;AAEpB,GAAG;AACH,SAAS;AACT,EAAE;AACF,mDAAmD;AACnD,iEAAiE;AACjE,oFAAoF;AACpF,EAAE;AACF,kBAAkB;AAClB,GAAG;;AAEH;EACE,WAAW,EAAE,KAAK;EAClB,iBAAiB;EACjB,mBAAmB;;EAEnB,6CAA6C;;EAE7C;IACE,qBAAqB,EAAE,KAAK;IAC5B,sBAAsB,EAAE,KAAK;EAC/B;;EAEA;IACE,wBAAwB;EAC1B;AACF;;AAEA;EACE;IACE,qDAAqD;EACvD;AACF;;AAEA;;EAEE,eAAe;EACf,kCAAkC;EAClC,gDAAgD;EAChD,gBAAgB;EAChB,mBAAmB;;EAEnB,4BAA4B;EAC5B,8CAA8C;EAC9C,6CAA6C;EAC7C,2CAA2C;;EAE3C;IACE,gBAAgB;EAClB;AACF;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;EAChB,6CAA6C;AAC/C","file":"_table.scss","sourcesContent":["@use \"../settings\" as *;\n@use \"../tools\" as *;\n\n////\n/// Tables\n///\n/// 1. Force `<table>`s to be full-width by default.\n/// 2. Allow word breaks anywhere to prevent table fit-to-content.\n/// 3. Allow word breaks when necessary (deprecated but works, unlike overflow-wrap).\n///\n/// @group elements\n////\n\ntable {\n  width: 100%; // [1]\n  border-spacing: 0;\n  vertical-align: top;\n\n  @include nhsuk-responsive-margin(7, \"bottom\");\n\n  .nhsuk-u-text-break-word {\n    word-break: break-all; // [2]\n    word-break: break-word; // [3]\n  }\n\n  @include nhsuk-media-query($media-type: print) {\n    page-break-inside: avoid;\n  }\n}\n\nthead {\n  th {\n    border-bottom-width: $nhsuk-border-table-header-width;\n  }\n}\n\nth,\ntd {\n  padding-left: 0;\n  border: solid $nhsuk-border-colour;\n  border-width: 0 0 $nhsuk-border-table-cell-width;\n  text-align: left;\n  vertical-align: top;\n\n  @include nhsuk-font-size(19);\n  @include nhsuk-responsive-padding(3, \"bottom\");\n  @include nhsuk-responsive-padding(4, \"right\");\n  @include nhsuk-responsive-padding(3, \"top\");\n\n  &:last-child {\n    padding-right: 0;\n  }\n}\n\nth {\n  @include nhsuk-font-weight-bold;\n}\n\ncaption {\n  text-align: left;\n  @include nhsuk-font($size: 22, $weight: bold);\n}\n"]}
